aboutsummaryrefslogtreecommitdiff
path: root/config/cc
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2025-04-21 11:18:43 -0700
committerChris Packham <judge.packham@gmail.com>2025-04-26 15:05:43 +1200
commita23edf42678c0b47705b6f2b3827cce175539330 (patch)
tree9a1bfe09ad89f9b5576b1301024757f62e264ebd /config/cc
parentf61ea6b686e08acfb8443fe9f99fccc2e35b5ec0 (diff)
downloadcrosstool-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 'config/cc')
-rw-r--r--config/cc/gcc.in8
1 files changed, 8 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"