Merge pull request #173852 from trofi/workaround-fno-common-for-foremost

foremost: add -fcommon workaround
This commit is contained in:
Sergei Trofimovich 2022-05-29 16:01:32 +00:00 committed by GitHub
commit c2eb1202cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,11 @@ stdenv.mkDerivation rec {
patches = [ ./makefile.patch ]; 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)" ]; makeFlags = [ "PREFIX=$(out)" ];
enableParallelBuilding = true; enableParallelBuilding = true;