Author: ranger
Date: Tue Apr 14 18:45:06 2009
New Revision: 1501
URL:
<http://svn.finkproject.org/websvn/listing.php?sc=1&rev=1501&repname=user%3a+ranger>
Log:
use gcc 4.2 if possible
Modified:
kde-admindir/trunk/environment-helper.sh
Modified: kde-admindir/trunk/environment-helper.sh
URL:
<http://svn.finkproject.org/websvn/diff.php?path=/kde-admindir/trunk/environment-helper.sh&rev=1501&repname=user%3a+ranger>
==============================================================================
--- kde-admindir/trunk/environment-helper.sh (original)
+++ kde-admindir/trunk/environment-helper.sh Tue Apr 14 18:45:06 2009
@@ -141,6 +141,23 @@
export PATH="$PATH:/usr/X11R6/bin"
fi
+if [ -x "/usr/bin/gcc-4.2" ]; then
+ if [ -x "$PREFIX/bin/ccache" ]; then
+ mkdir -p gcc-root
+ ln -s $PREFIX/bin/ccache gcc-root/gcc-4.2
+ ln -s $PREFIX/bin/ccache gcc-root/g++-4.2
+ export PATH=`pwd`/gcc-root:"$PATH"
+ export CC="gcc-4.2"
+ export CXX="g++-4.2"
+ else
+ export CC="/usr/bin/gcc-4.2"
+ export CXX="/usr/bin/g++-4.2"
+ fi
+else
+ export CC="gcc"
+ export CXX="g++"
+fi
+
export ALL_LIBRARIES="$LDFLAGS $LIBS"
cat <<END
@@ -150,6 +167,8 @@
CFLAGS: $CFLAGS
CPPFLAGS: $CPPFLAGS
CXXFLAGS: $CXXFLAGS
+ CC: $CC
+ CXX: $CXX
FREETYPE_CONFIG: $FREETYPE_CONFIG
LDFLAGS: $LDFLAGS
LIBS: $LIBS
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs