diff options
author | Keith Packard <keithp@keithp.com> | 2025-04-21 11:18:43 -0700 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2025-04-26 15:05:43 +1200 |
commit | a23edf42678c0b47705b6f2b3827cce175539330 (patch) | |
tree | 9a1bfe09ad89f9b5576b1301024757f62e264ebd /scripts/build/cc | |
parent | f61ea6b686e08acfb8443fe9f99fccc2e35b5ec0 (diff) | |
download | crosstool-ng-a23edf42678c0b47705b6f2b3827cce175539330.tar.gz crosstool-ng-a23edf42678c0b47705b6f2b3827cce175539330.tar.bz2 crosstool-ng-a23edf42678c0b47705b6f2b3827cce175539330.zip |
gcc: Add CC_GCC_LIBSTDCXX_TARGET_CXXFLAGS
This parallels the newlib-nano setting,
NEWLIB_NANO_GCC_LIBSTDCXX_TARGET_CXXFLAGS, and provides a place to
specify options that control how libstdc++ is build, such as
-fno-exceptions.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'scripts/build/cc')
-rw-r--r-- | scripts/build/cc/gcc.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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 |