Permalink
Browse files

Explicitly use gcc-4.2 rather than LLVM

  • Loading branch information...
1 parent fdc2e0c commit 47521132f0b098f86fefe65eb613df1423609be5 @akhansen akhansen committed with fingolfin Oct 23, 2011
Showing with 26 additions and 0 deletions.
  1. +13 −0 compiler_wrapper.in
  2. +13 −0 perlmod/Fink/PkgVersion.pm
View
@@ -11,6 +11,19 @@ for dir in $PATH ; do
done
IFS="$save_IFS"
export PATH="$newpath"
+# use Apple gcc-4.2 compilers on SL
+case `uname -r` in
+10.*)
+ case $compiler in
+ cc|gcc)
+ compiler="gcc-4.2"
+ ;;
+ c++|g++)
+ compiler="g++-4.2"
+ ;;
+ esac
+ ;;
+esac
exec $compiler -arch @ARCHITECTURE@ "$@"
# strip path-prefix to avoid finding this wrapper again
# @PREFIX@/bin is needed to pick up ccache-default
View
@@ -4953,6 +4953,19 @@ for dir in \$PATH ; do
done
IFS="\$save_IFS"
export PATH="\$newpath"
+# use Apple gcc-4.2 compilers on SL
+case `uname -r` in
+10.*)
+ case \$compiler in
+ cc|gcc)
+ compiler="gcc-4.2"
+ ;;
+ c++|g++)
+ compiler="g++-4.2"
+ ;;
+ esac
+ ;;
+esac
exec \$compiler "-arch" "$arch" "\$@"
EOF
close GPP;

0 comments on commit 4752113

Please sign in to comment.