diff options
author | Bryan Hundven <bryanhundven@gmail.com> | 2016-01-06 19:25:04 (GMT) |
---|---|---|
committer | Bryan Hundven <bryanhundven@gmail.com> | 2016-01-06 19:25:04 (GMT) |
commit | f72bd213890b4ff3e1a96a6d4831829bdb7bc0e3 (patch) | |
tree | caaf34a7558bc6d03d66af700d51e78b5820a2a3 /scripts | |
parent | 7aff139719dc3c6106eea78e61ae7e4e2639ef05 (diff) | |
parent | a5057713a0394d189adc8b9abb0eb65592ecfc49 (diff) |
Merge pull request #314 from bhundven/fix_enable_cxx_flags_baremetal
gcc: Fix CC_GCC_ENABLE_CXX_FLAGS for mode=baremetal
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build/cc/100-gcc.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/build/cc/100-gcc.sh b/scripts/build/cc/100-gcc.sh index a54f6f9..195a185 100644 --- a/scripts/build/cc/100-gcc.sh +++ b/scripts/build/cc/100-gcc.sh @@ -266,6 +266,11 @@ do_gcc_core_backend() { extra_config+=("--disable-__cxa_atexit") fi + if [ -n "${CT_CC_GCC_ENABLE_CXX_FLAGS}" + -a "${mode}" = "baremetal" ]; then + extra_config+=("--enable-cxx-flags=${CT_CC_GCC_ENABLE_CXX_FLAGS}") + fi + extra_config+=(--disable-libgomp) extra_config+=(--disable-libmudflap) @@ -705,6 +710,7 @@ do_gcc_backend() { if [ -n "${CT_CC_GCC_ENABLE_CXX_FLAGS}" ]; then extra_config+=("--enable-cxx-flags=${CT_CC_GCC_ENABLE_CXX_FLAGS}") fi + if [ "${CT_THREADS}" = "none" ]; then extra_config+=(--disable-libatomic) fi |