blob: 5f941e2e7042f4344196b37a31b69ac95205abb8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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
|