move NIX_GLIBC_FLAGS_SET=1 to the dietlibc-wrapper

svn path=/nixpkgs/trunk/; revision=5992
This commit is contained in:
Armijn Hemel 2006-07-30 17:07:15 +00:00
parent 961c6e50e5
commit 0d685d9ebe
2 changed files with 1 additions and 3 deletions

View File

@ -1,11 +1,10 @@
source $stdenv/setup
#export NIX_GLIBC_FLAGS_SET=1
ensureDir "$(dirname $out/bin/diet)"
cat > $out/bin/gcc << END
#! $SHELL -e
export NIX_GLIBC_FLAGS_SET=1
exec $dietlibc/bin/diet $gcc/bin/gcc "\$@"
END

View File

@ -11,6 +11,5 @@ stdenv.mkDerivation {
patches = [./coreutils-dummy.patch];
buildInputs = [perl];
NIX_GCC = dietgcc;
NIX_GLIBC_FLAGS_SET=1;
NIX_CFLAGS_COMPILE="-D_BSD_SOURCE=1";
}