3
0
Fork 0
forked from mirrors/nixpkgs

sdcv: fix build on darwin (close #744)

* add -lintl flag to NIX_CFLAGS_COMPILE
This commit is contained in:
Jason \"Don\" O'Conal 2013-07-14 07:30:18 +10:00 committed by Vladimír Čunát
parent 2762b0667d
commit b43d1c014a

View file

@ -26,6 +26,7 @@ stdenv.mkDerivation rec {
sed -i 's/guint32 page_size/size_t page_size/' src/lib/lib.cpp
'';
NIX_CFLAGS_COMPILE = "-D__GNU_LIBRARY__";
NIX_CFLAGS_COMPILE = "-D__GNU_LIBRARY__"
+ stdenv.lib.optionalString stdenv.isDarwin " -lintl";
}