* Back out r6830.

svn path=/nixpkgs/trunk/; revision=6846
This commit is contained in:
Eelco Dolstra 2006-10-25 11:06:44 +00:00
parent 3ba5d075a4
commit 371d2ddbf2
3 changed files with 16 additions and 0 deletions

View File

@ -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() {
if test -n "$installLocales"; then

View File

@ -100,6 +100,7 @@ rec {
import ../generic {
name = "stdenv-linux-boot";
param1 = if staticGlibc then "static" else "dynamic";
preHook = ./scripts/prehook.sh;
stdenv = stdenvInitial;
shell = bootstrapTools.bash;

View File

@ -1,3 +1,8 @@
export NIX_ENFORCE_PURITY=1
if test "$param1" = "static"; then
export NIX_CFLAGS_LINK="-static"
export NIX_LDFLAGS_BEFORE="-static"
fi
havePatchELF=1