[Lunar-commits] CVS: theedge/var/lib/lunar/functions optimize.lunar, 1.48, 1.49

Auke Kok sofar at lunar-linux.org
Fri Jul 9 19:43:27 GMT 2004


Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory dbguin.lunar-linux.org:/tmp/cvs-serv24100/var/lib/lunar/functions

Modified Files:
	optimize.lunar 
Log Message:
Slightly modified after ranitha's optimize patch for gcc-3.4.x. This will transform the obsolete -mcpu into -mtune.


Index: optimize.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/optimize.lunar,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- optimize.lunar	17 Mar 2004 22:58:11 -0000	1.48
+++ optimize.lunar	9 Jul 2004 19:43:25 -0000	1.49
@@ -800,6 +800,11 @@
                 ;;
   esac
 
+  if [ "$(installed_version gcc | cut -d. -f1,2)" == "3.4" ] ; then
+    CFLAGS=$(echo $CFLAGS | sed 's:-mcpu:-mtune:')
+    CXXFLAGS=$(echo $CXXFLAGS | sed 's:-mcpu:-mtune:')
+  fi
+
   export CC_EXT
   export CXX_EXT
   export CFLAGS



More information about the Lunar-commits mailing list