3
0
Fork 0
forked from mirrors/nixpkgs

squeak: add -fcommon workaround

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

    ld: vm/vm.a(cogit.o):spur64src/vm/cogitX64SysV.c:2552: multiple definition of
      `traceStores'; vm/vm.a(gcc3x-cointerp.o):spur64src/vm/cogit.h:140: first defined here
This commit is contained in:
Sergei Trofimovich 2022-06-09 22:59:07 +01:00 committed by ehmry
parent a58de450c5
commit 8bc1f617dd

View file

@ -136,6 +136,11 @@ in stdenv.mkDerivation {
--replace '/bin/rm ' '${coreutils}/bin/rm ' --replace '/bin/rm ' '${coreutils}/bin/rm '
''; '';
# Workaround build failure on -fno-common toolchains:
# ld: vm/vm.a(cogit.o):spur64src/vm/cogitX64SysV.c:2552: multiple definition of
# `traceStores'; vm/vm.a(gcc3x-cointerp.o):spur64src/vm/cogit.h:140: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
preAutoreconf = '' preAutoreconf = ''
pushd ./platforms/unix/config > /dev/null pushd ./platforms/unix/config > /dev/null
./mkacinc > ./acplugins.m4 ./mkacinc > ./acplugins.m4