fix compilation so we can build a statically linked gcc with an impure environment. Needs "noSysDirs = false" passed as a parameter in all-packages.nix, or whatever.
svn path=/nixpkgs/trunk/; revision=6247
This commit is contained in:
parent
b6811b43f1
commit
6c7ea78070
@ -41,8 +41,8 @@ if test "$noSysDirs" = "1"; then
|
||||
export LDFLAGS=$extraLDFlags
|
||||
fi
|
||||
|
||||
else
|
||||
patches=""
|
||||
#else
|
||||
# patches=""
|
||||
fi
|
||||
|
||||
|
||||
|
@ -8,6 +8,6 @@ stdenv.mkDerivation {
|
||||
md5 = "4a21ac777d4b5617283ce488b808da7b";
|
||||
};
|
||||
# !!! apply only if noSysDirs is set
|
||||
patches = [./no-sys-dirs.patch];
|
||||
inherit noSysDirs;
|
||||
patches = if noSysDirs then [./no-sys-dirs.patch] else [./ldflags.patch];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user