mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01: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
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue