diff options
-rw-r--r-- | config/cc/gcc.in | 8 | ||||
-rw-r--r-- | scripts/build/cc/gcc.sh | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/config/cc/gcc.in b/config/cc/gcc.in index b51c0bda..7928468c 100644 --- a/config/cc/gcc.in +++ b/config/cc/gcc.in @@ -265,6 +265,14 @@ config CC_GCC_LIBSTDCXX_HOSTED_DISABLE Answer 'y' here to force freestanding mode, otherwise answer let ./configure decide. +config CC_GCC_LIBSTDCXX_TARGET_CXXFLAGS + string + prompt "Target CXXFLAGS for libstdc++" + default "" + help + Used to add extra CXXFLAGS when compiling the target libstdc++ + library (e.g. -fno-exceptions). + config CC_GCC_LIBMUDFLAP bool prompt "Compile libmudflap" diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index 7e0f8160..8131af54 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -913,6 +913,7 @@ do_cc_for_host() { final_opts+=( "ldflags=${CT_LDFLAGS_FOR_HOST}" ) final_opts+=( "lang_list=$( cc_gcc_lang_list )" ) final_opts+=( "build_step=gcc_host" ) + final_opts+=( "extra_cxxflags_for_target=${CT_CC_GCC_LIBSTDCXX_TARGET_CXXFLAGS}" ) if [ "${CT_BUILD_MANUALS}" = "y" ]; then final_opts+=( "build_manuals=yes" ) fi |