glib: fixup build on Darwin after #34198

hopefully
This commit is contained in:
Vladimír Čunát 2018-01-29 06:48:04 +01:00
parent e2a54266c4
commit 64ba681f48
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -75,7 +75,8 @@ 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.hostPlatform.libc != "glibc") "--with-libiconv=gnu"
++ optional (stdenv.hostPlatform.libc != "glibc" && !stdenv.hostPlatform.isDarwin)
"--with-libiconv=gnu"
++ optional stdenv.isSunOS "--disable-dtrace"
# Can't run this test when cross-compiling
++ optionals (stdenv.hostPlatform != stdenv.buildPlatform)