diff options
author | Chris Packham <judge.packham@gmail.com> | 2021-06-09 08:11:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-09 08:11:48 (GMT) |
commit | 594b9286f41e2e5e6ef6cb68fe4c318aa6b7c808 (patch) | |
tree | bae136edcf5030610d9ed0606ba79d7836759244 /scripts/build/companion_libs/350-newlib_nano.sh | |
parent | e7139130295097ce05d9c7b3dcbb890c3a084975 (diff) | |
parent | 7144b5f275f380941bffca9509ecb97542c8e5ea (diff) |
Merge pull request #1524 from stephanosio/gcc_custom_libstdcpp_cxx_flags_upstream
Fix libstdc++ build options
Diffstat (limited to 'scripts/build/companion_libs/350-newlib_nano.sh')
-rw-r--r-- | scripts/build/companion_libs/350-newlib_nano.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/build/companion_libs/350-newlib_nano.sh b/scripts/build/companion_libs/350-newlib_nano.sh index d109070..2d9de1b 100644 --- a/scripts/build/companion_libs/350-newlib_nano.sh +++ b/scripts/build/companion_libs/350-newlib_nano.sh @@ -67,6 +67,9 @@ do_cc_libstdcxx_newlib_nano() if [ "${CT_LIBC_NEWLIB_NANO_ENABLE_TARGET_OPTSPACE}" = "y" ]; then final_opts+=( "enable_optspace=yes" ) fi + if [ -n "${CT_NEWLIB_NANO_GCC_LIBSTDCXX_TARGET_CXXFLAGS}" ]; then + final_opts+=( "extra_cxxflags_for_target=${CT_NEWLIB_NANO_GCC_LIBSTDCXX_TARGET_CXXFLAGS}" ) + fi if [ "${CT_BARE_METAL}" = "y" ]; then final_opts+=( "mode=baremetal" ) |