3
0
Fork 0
forked from mirrors/nixpkgs

* Use a Nix shell for gcc-wrapper and ld-wrapper.

svn path=/nixpkgs/trunk/; revision=875
This commit is contained in:
Eelco Dolstra 2004-03-29 17:34:00 +00:00
parent 12ae5363ea
commit 8ed9ea8b51
4 changed files with 5 additions and 2 deletions

View file

@ -39,6 +39,7 @@ mkGccWrapper () {
sed \
-e "s^@gcc@^$src^g" \
-e "s^@out@^$out^g" \
-e "s^@bash@^$SHELL^g" \
< $gccWrapper > $dst
chmod +x $dst
}
@ -57,6 +58,7 @@ sed \
-e "s^@out@^$out^g" \
-e "s^@ldflags@^$ldflags^g" \
-e "s^@ld@^$ldPath/ld^g" \
-e "s^@bash@^$SHELL^g" \
< $ldWrapper > $out/bin/ld
chmod +x $out/bin/ld

View file

@ -1,4 +1,4 @@
#! /bin/sh
#! @bash@ -e
if test -n "$NIX_GCC_WRAPPER_START_HOOK"; then
. "$NIX_GCC_WRAPPER_START_HOOK"

View file

@ -1,4 +1,4 @@
#! /bin/sh
#! @bash@ -e
if test -n "$NIX_LD_WRAPPER_START_HOOK"; then
. "$NIX_LD_WRAPPER_START_HOOK"

View file

@ -3,5 +3,6 @@ export PATH=/usr/bin:/bin
mkdir $out
cat > $out/setup <<EOF
export PATH=/usr/bin:/bin
export SHELL=/bin/sh
EOF
chmod +x $out/setup