Merge pull request #173852 from trofi/workaround-fno-common-for-foremost
foremost: add -fcommon workaround
This commit is contained in:
commit
c2eb1202cc
1 changed files with 5 additions and 0 deletions
|
@ -11,6 +11,11 @@ stdenv.mkDerivation rec {
|
|||
|
||||
patches = [ ./makefile.patch ];
|
||||
|
||||
# -fcommon: Workaround build failure on -fno-common toolchains like upstream
|
||||
# gcc-10. Otherwise build fails as:
|
||||
# ld: api.o:(.bss+0xbdba0): multiple definition of `wildcard'; main.o:(.bss+0xbd760): first defined here
|
||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
|
||||
makeFlags = [ "PREFIX=$(out)" ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
|
Loading…
Reference in a new issue