FreeBSD: minor fixes, add notes and make stdenv more robust

This commit is contained in:
janus
2016-01-01 17:01:13 +00:00
parent a472d836f6
commit 55aa9163cc
12 changed files with 223 additions and 279 deletions
+2 -1
View File
@@ -31,7 +31,8 @@ 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 " + stdenv.lib.optionalString (stdenv.isFreeBSD) "-fPIC";
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString (!stdenv.isDarwin) "-static-libgcc "
+ stdenv.lib.optionalString (stdenv.isFreeBSD) "-fPIC";
crossAttrs = {
dontStrip = static;