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:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user