* Back out r6830.
svn path=/nixpkgs/trunk/; revision=6846
This commit is contained in:
parent
3ba5d075a4
commit
371d2ddbf2
@ -35,6 +35,16 @@ preConfigure() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
postConfigure=postConfigure
|
||||||
|
postConfigure() {
|
||||||
|
# Hack: get rid of the `-static' flag set by the bootstrap stdenv.
|
||||||
|
# This has to be done *after* `configure' because it builds some
|
||||||
|
# test binaries.
|
||||||
|
export NIX_CFLAGS_LINK=
|
||||||
|
export NIX_LDFLAGS_BEFORE=
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
postInstall=postInstall
|
postInstall=postInstall
|
||||||
postInstall() {
|
postInstall() {
|
||||||
if test -n "$installLocales"; then
|
if test -n "$installLocales"; then
|
||||||
|
@ -100,6 +100,7 @@ rec {
|
|||||||
|
|
||||||
import ../generic {
|
import ../generic {
|
||||||
name = "stdenv-linux-boot";
|
name = "stdenv-linux-boot";
|
||||||
|
param1 = if staticGlibc then "static" else "dynamic";
|
||||||
preHook = ./scripts/prehook.sh;
|
preHook = ./scripts/prehook.sh;
|
||||||
stdenv = stdenvInitial;
|
stdenv = stdenvInitial;
|
||||||
shell = bootstrapTools.bash;
|
shell = bootstrapTools.bash;
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
export NIX_ENFORCE_PURITY=1
|
export NIX_ENFORCE_PURITY=1
|
||||||
|
|
||||||
|
if test "$param1" = "static"; then
|
||||||
|
export NIX_CFLAGS_LINK="-static"
|
||||||
|
export NIX_LDFLAGS_BEFORE="-static"
|
||||||
|
fi
|
||||||
|
|
||||||
havePatchELF=1
|
havePatchELF=1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user