mmixware: fix build with GCC 15

This commit is contained in:
Brian Leung
2026-01-01 21:54:31 -08:00
parent 16eb4dee7f
commit 92306f13eb
+7 -3
View File
@@ -23,9 +23,13 @@ stdenv.mkDerivation {
substituteInPlace Makefile --replace 'rm abstime.h' ""
'';
# Workaround build failure on -fno-common toolchains:
# ld: mmix-config.o:(.bss+0x600): multiple definition of `buffer'; /build/ccDuGrwH.o:(.bss+0x20): first defined here
env.NIX_CFLAGS_COMPILE = "-fcommon";
env.NIX_CFLAGS_COMPILE = toString [
# Workaround build failure on -fno-common toolchains:
# ld: mmix-config.o:(.bss+0x600): multiple definition of `buffer'; /build/ccDuGrwH.o:(.bss+0x20): first defined here
"-fcommon"
# Workaround to build with GCC 15
"-std=gnu17"
];
nativeBuildInputs = [ tetex ];
enableParallelBuilding = true;