FreeBSD: use own stdenv, do not run libtiff tests, use PIC for zlib

This commit is contained in:
janus
2016-01-01 17:01:13 +00:00
parent 2d00f27230
commit f351aaaf85
7 changed files with 320 additions and 5 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ stdenv.mkDerivation (rec {
# As zlib takes part in the stdenv building, we don't want references
# to the bootstrap-tools libgcc (as uses to happen on arm/mips)
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString (!stdenv.isDarwin) "-static-libgcc";
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString (!stdenv.isDarwin) "-static-libgcc " + stdenv.lib.optionalString (stdenv.isFreeBSD) "-fPIC";
crossAttrs = {
dontStrip = static;