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:
parent
bd7aa1e1bf
commit
6f86eabf6d
|
@ -54,6 +54,9 @@ stdenv.mkDerivation rec {
|
||||||
# skip interactive browser check
|
# skip interactive browser check
|
||||||
buildFlags = [ "nobrowsers" ];
|
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=''
|
preConfigure=''
|
||||||
configureFlagsArray=(
|
configureFlagsArray=(
|
||||||
|
|
Loading…
Reference in a new issue