1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00
nixpkgs/pkgs/os-specific/linux/dietlibc-wrapper/builder.sh
Eelco Dolstra 82e678362f * "." -> "source".
svn path=/nixpkgs/trunk/; revision=4335
2005-12-05 14:11:09 +00:00

15 lines
232 B
Bash

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