diff options
author | Ludovic Courtès <ludo@gnu.org> | 2009-08-10 13:37:18 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2009-08-10 13:37:18 +0000 |
commit | a58d16552432efcb2f124f1630acedf006f5dab3 (patch) | |
tree | 4685817060921aa4a8c44a2746ebc342e6208242 /pkgs/build-support/gcc-wrapper | |
parent | 09ab84a4311a17c8b1c14fd67276a6315f4aeaf9 (diff) | |
download | nixpkgs-a58d16552432efcb2f124f1630acedf006f5dab3.tar nixpkgs-a58d16552432efcb2f124f1630acedf006f5dab3.tar.gz nixpkgs-a58d16552432efcb2f124f1630acedf006f5dab3.tar.bz2 nixpkgs-a58d16552432efcb2f124f1630acedf006f5dab3.tar.lz nixpkgs-a58d16552432efcb2f124f1630acedf006f5dab3.tar.xz nixpkgs-a58d16552432efcb2f124f1630acedf006f5dab3.tar.zst nixpkgs-a58d16552432efcb2f124f1630acedf006f5dab3.zip |
Revert r16645, which was intended for the `stdenv-updates' branch.
svn path=/nixpkgs/trunk/; revision=16646
Diffstat (limited to 'pkgs/build-support/gcc-wrapper')
-rw-r--r-- | pkgs/build-support/gcc-wrapper/builder.sh | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/pkgs/build-support/gcc-wrapper/builder.sh b/pkgs/build-support/gcc-wrapper/builder.sh index d079cc59a9b..0fe3f3768f2 100644 --- a/pkgs/build-support/gcc-wrapper/builder.sh +++ b/pkgs/build-support/gcc-wrapper/builder.sh @@ -83,7 +83,7 @@ mkGccWrapper() { if ! test -f "$src"; then echo "$src does not exist (skipping)" - return 1 + return fi gccProg="$src" @@ -91,24 +91,18 @@ mkGccWrapper() { chmod +x "$dst" } -if mkGccWrapper $out/bin/gcc $gccPath/gcc -then - ln -sv gcc $out/bin/cc -fi +mkGccWrapper $out/bin/gcc $gccPath/gcc +ln -s gcc $out/bin/cc -if mkGccWrapper $out/bin/g++ $gccPath/g++ -then - ln -sv g++ $out/bin/c++ -fi +mkGccWrapper $out/bin/g++ $gccPath/g++ +ln -s g++ $out/bin/c++ -if mkGccWrapper $out/bin/gfortran $gccPath/gfortran -then - ln -sv gfortran $out/bin/g77 - ln -sv gfortran $out/bin/f77 +if test -e $gccPath/gfortran; then + mkGccWrapper $out/bin/gfortran $gccPath/gfortran + ln -s gfortran $out/bin/g77 + ln -s gfortran $out/bin/f77 fi -mkGccWrapper $out/bin/gcj $gccPath/gcj - # Create a symlink to as (the assembler). This is useful when a # gcc-wrapper is installed in a user environment, as it ensures that |