Commit fb747110 authored by polygon's avatar polygon
Browse files

gatling: fix build with gcc14

Cause of the error was actually a main without return type is a
probe program, causing the probes to fail.
parent 9f208a0d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -30,8 +30,10 @@ stdenv.mkDerivation rec {
  ];

  configurePhase = ''
    substituteInPlace Makefile --replace "/usr/local" "$out"
    substituteInPlace GNUmakefile --replace "/opt/diet" "$out"
    substituteInPlace Makefile --replace-fail "/usr/local" "$out"
    substituteInPlace GNUmakefile --replace-fail "/opt/diet" "$out"
    substituteInPlace tryalloca.c --replace-fail "main() {" "int main() {"
    substituteInPlace trysocket.c --replace-fail "main() {" "int main() {"
  '';

  buildPhase = ''