Unverified Commit f3102023 authored by 7c6f434c's avatar 7c6f434c Committed by GitHub
Browse files

gerbil: fix build (#490533)

parents a3fcf2dd 07db3a1f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -74,6 +74,10 @@ stdenv.mkDerivation rec {
    "--enable-march=" # Avoid non-portable invalid instructions. Use =native if local build only.
  ];

  env.NIX_CFLAGS_COMPILE =
    # Required for legacy C code in source
    "-Wno-error=implicit-function-declaration";

  configurePhase = ''
    export CC=${gccStdenv.cc}/bin/${gccStdenv.cc.targetPrefix}gcc \
           CXX=${gccStdenv.cc}/bin/${gccStdenv.cc.targetPrefix}g++ \