nixpkgs/pkgs/os-specific/linux/dietlibc-wrapper/builder.sh
Armijn Hemel 0d685d9ebe move NIX_GLIBC_FLAGS_SET=1 to the dietlibc-wrapper
svn path=/nixpkgs/trunk/; revision=5992
2006-07-30 17:07:15 +00:00

14 lines
230 B
Bash

source $stdenv/setup
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
chmod +x $out/bin/gcc
ln -s $out/bin/gcc $out/bin/cc