From 93d5d7664faaf3a0e63c58cd74105c3c8364130b Mon Sep 17 00:00:00 2001 From: Michał Zagórski Date: Sun, 11 May 2025 17:52:05 +0200 Subject: Use -std=c17 for companion libs, which won't build with C23 standard, default for gcc15 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Zagórski --- config/comp_libs/gmp.in | 5 +++++ config/comp_libs/ncurses.in | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'config/comp_libs') 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. -- cgit v1.2.3