mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
ncftp: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: bookmark.o: (.bss+0x20): multiple definition of `gBm'; gpshare.o:(.bss+0x0): first defined here
This commit is contained in:
parent
512c5114ce
commit
43b8ad27aa
@ -13,6 +13,12 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
# Workaround build failure on -fno-common toolchains like upstream
|
||||
# gcc-10. Otherwise build fails as:
|
||||
# ld: bookmark.o: (.bss+0x20): multiple definition of `gBm';
|
||||
# gpshare.o:(.bss+0x0): first defined here
|
||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
|
||||
preConfigure = ''
|
||||
find -name Makefile.in | xargs sed -i '/^TMPDIR=/d'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user