Skip to content

Commit

Permalink
Merge pull request #314 from bhundven/fix_enable_cxx_flags_baremetal
Browse files Browse the repository at this point in the history
gcc: Fix CC_GCC_ENABLE_CXX_FLAGS for mode=baremetal
  • Loading branch information
bhundven committed Jan 6, 2016
2 parents 7aff139 + a505771 commit f72bd21
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/build/cc/100-gcc.sh
Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f72bd21

Please sign in to comment.