Revert r16645, which was intended for the `stdenv-updates' branch.
svn path=/nixpkgs/trunk/; revision=16646
This commit is contained in:
parent
09ab84a431
commit
a58d165524
@ -83,7 +83,7 @@ mkGccWrapper() {
|
|||||||
|
|
||||||
if ! test -f "$src"; then
|
if ! test -f "$src"; then
|
||||||
echo "$src does not exist (skipping)"
|
echo "$src does not exist (skipping)"
|
||||||
return 1
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
gccProg="$src"
|
gccProg="$src"
|
||||||
@ -91,24 +91,18 @@ mkGccWrapper() {
|
|||||||
chmod +x "$dst"
|
chmod +x "$dst"
|
||||||
}
|
}
|
||||||
|
|
||||||
if mkGccWrapper $out/bin/gcc $gccPath/gcc
|
mkGccWrapper $out/bin/gcc $gccPath/gcc
|
||||||
then
|
ln -s gcc $out/bin/cc
|
||||||
ln -sv gcc $out/bin/cc
|
|
||||||
fi
|
|
||||||
|
|
||||||
if mkGccWrapper $out/bin/g++ $gccPath/g++
|
mkGccWrapper $out/bin/g++ $gccPath/g++
|
||||||
then
|
ln -s g++ $out/bin/c++
|
||||||
ln -sv g++ $out/bin/c++
|
|
||||||
fi
|
|
||||||
|
|
||||||
if mkGccWrapper $out/bin/gfortran $gccPath/gfortran
|
if test -e $gccPath/gfortran; then
|
||||||
then
|
mkGccWrapper $out/bin/gfortran $gccPath/gfortran
|
||||||
ln -sv gfortran $out/bin/g77
|
ln -s gfortran $out/bin/g77
|
||||||
ln -sv gfortran $out/bin/f77
|
ln -s gfortran $out/bin/f77
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkGccWrapper $out/bin/gcj $gccPath/gcj
|
|
||||||
|
|
||||||
|
|
||||||
# Create a symlink to as (the assembler). This is useful when a
|
# Create a symlink to as (the assembler). This is useful when a
|
||||||
# gcc-wrapper is installed in a user environment, as it ensures that
|
# gcc-wrapper is installed in a user environment, as it ensures that
|
||||||
|
Loading…
x
Reference in New Issue
Block a user