aboutsummaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2025-04-20 18:10:26 -0700
committerChris Packham <judge.packham@gmail.com>2025-04-26 15:05:43 +1200
commit63765c98c0c267e1cc87612ea7373e13113396d9 (patch)
tree26b3c58e51f2311a95e36e01e1784176ad1e0b28 /scripts/build
parenta23edf42678c0b47705b6f2b3827cce175539330 (diff)
downloadcrosstool-ng-63765c98c0c267e1cc87612ea7373e13113396d9.tar.gz
crosstool-ng-63765c98c0c267e1cc87612ea7373e13113396d9.tar.bz2
crosstool-ng-63765c98c0c267e1cc87612ea7373e13113396d9.zip
picolibc: Add LIBC_PICOLIBC_GCC_LIBSTDCXX_TARGET_CXXFLAGS
This provides additional flags used when building libstdc++ for picolibc. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'scripts/build')
-rw-r--r--scripts/build/companion_libs/340-picolibc.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/build/companion_libs/340-picolibc.sh b/scripts/build/companion_libs/340-picolibc.sh
index 35ee0eaa..94bdaad9 100644
--- a/scripts/build/companion_libs/340-picolibc.sh
+++ b/scripts/build/companion_libs/340-picolibc.sh
@@ -157,6 +157,9 @@ do_cc_libstdcxx_picolibc()
if [ "${CT_LIBC_PICOLIBC_ENABLE_TARGET_OPTSPACE}" = "y" ]; then
final_opts+=( "enable_optspace=yes" )
fi
+ if [ -n "${CT_LIBC_PICOLIBC_GCC_LIBSTDCXX_TARGET_CXXFLAGS}" ]; then
+ final_opts+=( "extra_cxxflags_for_target=${CT_LIBC_PICOLIBC_GCC_LIBSTDCXX_TARGET_CXXFLAGS}" )
+ fi
if [ "${CT_BARE_METAL}" = "y" ]; then
final_opts+=( "mode=baremetal" )