2005-12-05 06:11:09 -08:00
|
|
|
source $stdenv/setup
|
2005-08-27 17:18:26 -07:00
|
|
|
|
|
|
|
ensureDir "$(dirname $out/bin/diet)"
|
|
|
|
|
|
|
|
cat > $out/bin/gcc << END
|
|
|
|
#! $SHELL -e
|
2006-07-30 10:07:15 -07:00
|
|
|
export NIX_GLIBC_FLAGS_SET=1
|
2005-08-27 17:18:26 -07:00
|
|
|
exec $dietlibc/bin/diet $gcc/bin/gcc "\$@"
|
|
|
|
END
|
|
|
|
|
|
|
|
chmod +x $out/bin/gcc
|
|
|
|
|
|
|
|
ln -s $out/bin/gcc $out/bin/cc
|