Commit 8ec5ad48 authored by holagus's avatar holagus Committed by Peter Hoeg
Browse files

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
parent 3f45d048
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;
  };
}