mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 11:27:45 +00:00
ncftp: fix darwin build
This commit is contained in:
parent
30fa2e0c61
commit
f1be43a54e
@ -17,7 +17,12 @@ stdenv.mkDerivation rec {
|
||||
# gcc-10. Otherwise build fails as:
|
||||
# ld: bookmark.o: (.bss+0x20): multiple definition of `gBm';
|
||||
# gpshare.o:(.bss+0x0): first defined here
|
||||
env.NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
env.NIX_CFLAGS_COMPILE = toString ([ "-fcommon" ]
|
||||
# these are required for the configure script to work with clang
|
||||
++ lib.optionals stdenv.isDarwin [
|
||||
"-Wno-implicit-int"
|
||||
"-Wno-implicit-function-declaration"
|
||||
]);
|
||||
|
||||
preConfigure = ''
|
||||
find -name Makefile.in | xargs sed -i '/^TMPDIR=/d'
|
||||
|
Loading…
Reference in New Issue
Block a user