pmccabe: fix build with gcc 14

A change in GCC 14 turned implicit function declarations an error. See: https://gcc.gnu.org/gcc-14/porting_to.html#implicit-function-declaration
This commit is contained in:
holagus
2025-02-05 14:14:37 +01:00
committed by Peter Hoeg
parent 3f45d04802
commit 8ec5ad480a
+5
View File
@@ -17,6 +17,10 @@ stdenv.mkDerivation rec {
./getopt_on_darwin.patch
];
# GCC 14 made implicit function declarations an error. With this switch we turn them
# back into a warning.
env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
configurePhase = ''
sed -i -r Makefile \
-e 's,/usr/,/,g' \
@@ -50,3 +54,4 @@ stdenv.mkDerivation rec {
platforms = platforms.unix;
};
}