diff options
author | Michał Zagórski <zagura6+github@gmail.com> | 2025-05-11 17:52:05 +0200 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2025-06-13 21:02:44 +1200 |
commit | 93d5d7664faaf3a0e63c58cd74105c3c8364130b (patch) | |
tree | 485b464fd89962f0f1af40ed9deb970e245059f3 /config | |
parent | a2ef08027fbc268cde2d6985ab724e38af450cae (diff) | |
download | crosstool-ng-93d5d7664faaf3a0e63c58cd74105c3c8364130b.tar.gz crosstool-ng-93d5d7664faaf3a0e63c58cd74105c3c8364130b.tar.bz2 crosstool-ng-93d5d7664faaf3a0e63c58cd74105c3c8364130b.zip |
Use -std=c17 for companion libs, which won't build with C23 standard, default for gcc15
Signed-off-by: Michał Zagórski <zagura6+github@gmail.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/comp_libs/gmp.in | 5 | ||||
-rw-r--r-- | config/comp_libs/ncurses.in | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/config/comp_libs/gmp.in b/config/comp_libs/gmp.in index f49d1a71..7baac528 100644 --- a/config/comp_libs/gmp.in +++ b/config/comp_libs/gmp.in @@ -1 +1,6 @@ # GMP options +config GMP_EXTRA_CFLAGS + string "extra target CFLAGS" + default "-std=gnu17" if GCC_15_or_later + help + Extra target CFLAGS to use when building. diff --git a/config/comp_libs/ncurses.in b/config/comp_libs/ncurses.in index 4e7e6d47..3d257439 100644 --- a/config/comp_libs/ncurses.in +++ b/config/comp_libs/ncurses.in @@ -55,3 +55,8 @@ config NCURSES_TARGET_FALLBACKS List of terminal descriptions that will be compiled into the curses library for the target. +config NCURSES_EXTRA_CFLAGS + string "extra target CFLAGS" + default "-std=gnu17" if GCC_15_or_later + help + Extra target CFLAGS fto use when building. |