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.
This commit is contained in:
polygon
2025-03-27 22:28:42 +01:00
parent 9f208a0d5e
commit fb7471106b
+4 -2
View File
@@ -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 = ''