ncftp: fix darwin build

This commit is contained in:
David McFarland
2024-03-29 10:26:49 -03:00
parent 30fa2e0c61
commit f1be43a54e
+6 -1
View File
@@ -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'