From a58d16552432efcb2f124f1630acedf006f5dab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 10 Aug 2009 13:37:18 +0000 Subject: [PATCH] Revert r16645, which was intended for the `stdenv-updates' branch. svn path=/nixpkgs/trunk/; revision=16646 --- pkgs/build-support/gcc-wrapper/builder.sh | 24 +++++++++-------------- 1 file 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