mmixware: add -fcommon workaround

Workaround build failure on -fno-common toolchains like upstream
gcc-10. Otherwise build fails as:

    ld: mmix-config.o:(.bss+0x600): multiple definition of `buffer'; /build/ccDuGrwH.o:(.bss+0x20): first defined here
This commit is contained in:
Sergei Trofimovich 2022-06-04 17:40:13 +01:00
parent 4ae74bbc94
commit 386207e312

View File

@ -18,6 +18,10 @@ 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
NIX_CFLAGS_COMPILE = "-fcommon";
nativeBuildInputs = [ tetex ];
enableParallelBuilding = true;