eli: add -fcommon workaround

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

    ld: cexp.o:(.bss+0x40): multiple definition of `obstck'; cccp.o:(.bss+0x0): first defined here
This commit is contained in:
Sergei Trofimovich 2022-06-04 06:51:44 +01:00
parent bd7aa1e1bf
commit 6f86eabf6d

View file

@ -54,6 +54,9 @@ stdenv.mkDerivation rec {
# skip interactive browser check
buildFlags = [ "nobrowsers" ];
# Workaround build failure on -fno-common toolchains:
# ld: cexp.o:(.bss+0x40): multiple definition of `obstck'; cccp.o:(.bss+0x0): first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
preConfigure=''
configureFlagsArray=(