From a49ec4d583f7050a96fb23cd36c29b5022ee4db1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Fri, 7 Feb 2025 20:08:26 +0100 Subject: [PATCH] make-binaries: Fix building Termcap and Linux-PAM Building GNU Termcap and Linux-PAM using the updated toolchain both failed, since crosstool-NG now uses GCC 14.x, which turns the "implicit-function-declaration" warning into an error. See: https://gcc.gnu.org/gcc-14/porting_to.html#warnings-as-errors Therefore, specify "CFLAGS=-Wno-error=implicit-function-declaration" to turn this error back into a warning. --- tools/make-binaries | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/make-binaries b/tools/make-binaries index edf56314f..d5876807e 100755 --- a/tools/make-binaries +++ b/tools/make-binaries @@ -547,6 +547,7 @@ build_deps() info "Building Termcap $termcap_vsn for $arch-$libc ..." cd "$target_src_dir/$termcap_dir" + sed -i 's/CFLAGS =/CFLAGS = -Wno-error=implicit-function-declaration/' 'Makefile.in' $configure --prefix="$prefix" cat >'config.h' <<-'EOF' #ifndef CONFIG_H @@ -630,7 +631,7 @@ build_deps() $configure --prefix="$prefix" --includedir="$prefix/include/security" \ --enable-static --disable-shared --disable-doc --disable-examples \ --enable-db=no \ - CFLAGS="$CFLAGS -O3 -fPIC" + CFLAGS="$CFLAGS -O3 -fPIC -Wno-error=implicit-function-declaration" make make install cd "$OLDPWD"