Merge branch 'staging' into closure-size
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
assert !stdenv.isDarwin -> stdenv.cc.isGNU;
|
||||
assert stdenv.isFreeBSD || stdenv.isDarwin || stdenv.cc.isGNU;
|
||||
|
||||
# TODO:
|
||||
# * Add gio-module-fam
|
||||
@@ -69,11 +69,15 @@ stdenv.mkDerivation rec {
|
||||
# internal pcre would only add <200kB, but it's relatively common
|
||||
configureFlags = [ "--with-pcre=system" ]
|
||||
++ optional stdenv.isDarwin "--disable-compile-warnings"
|
||||
++ optional stdenv.isFreeBSD "--with-libiconv=gnu"
|
||||
++ optional stdenv.isSunOS ["--disable-modular-tests" "--with-libiconv"];
|
||||
|
||||
NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin " -lintl"
|
||||
+ optionalString stdenv.isSunOS " -DBSD_COMP";
|
||||
|
||||
LIBELF_CFLAGS = optional stdenv.isFreeBSD "-I${libelf}";
|
||||
LIBELF_LIBS = optional stdenv.isFreeBSD "-L${libelf} -lelf";
|
||||
|
||||
preBuild = optionalString stdenv.isDarwin
|
||||
''
|
||||
export MACOSX_DEPLOYMENT_TARGET=
|
||||
|
||||
Reference in New Issue
Block a user