mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-25 22:00:18 +00:00
Merge pull request #314 from bhundven/fix_enable_cxx_flags_baremetal
gcc: Fix CC_GCC_ENABLE_CXX_FLAGS for mode=baremetal
This commit is contained in:
commit
f72bd21389
@ -266,6 +266,11 @@ do_gcc_core_backend() {
|
|||||||
extra_config+=("--disable-__cxa_atexit")
|
extra_config+=("--disable-__cxa_atexit")
|
||||||
fi
|
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-libgomp)
|
||||||
extra_config+=(--disable-libmudflap)
|
extra_config+=(--disable-libmudflap)
|
||||||
|
|
||||||
@ -705,6 +710,7 @@ do_gcc_backend() {
|
|||||||
if [ -n "${CT_CC_GCC_ENABLE_CXX_FLAGS}" ]; then
|
if [ -n "${CT_CC_GCC_ENABLE_CXX_FLAGS}" ]; then
|
||||||
extra_config+=("--enable-cxx-flags=${CT_CC_GCC_ENABLE_CXX_FLAGS}")
|
extra_config+=("--enable-cxx-flags=${CT_CC_GCC_ENABLE_CXX_FLAGS}")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${CT_THREADS}" = "none" ]; then
|
if [ "${CT_THREADS}" = "none" ]; then
|
||||||
extra_config+=(--disable-libatomic)
|
extra_config+=(--disable-libatomic)
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user