magic-vlsi: fix build with modern compilers (#478703)

This commit is contained in:
Aleksana
2026-01-10 15:00:10 +00:00
committed by GitHub
+2 -1
View File
@@ -87,7 +87,8 @@ stdenv.mkDerivation rec {
install_name_tool -add_rpath ${mesa_glu.out}/lib $out/lib/magic/tcl/magicexec
'';
env.NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration";
# gnu89 is needed for GCC 15 that is more strict about K&R style prototypes
env.NIX_CFLAGS_COMPILE = "-std=gnu89 -Wno-implicit-function-declaration";
env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-headerpad_max_install_names";
meta = {