[pacman-dev] patch for gcc4.2 adding -mtune=generic

Andreas Radke a.radke at arcor.de
Sun May 20 11:43:36 EDT 2007


we have to add -mtune=generic to our makepkg.conf from gcc4.2 on. this
should do it:

--- etc/makepkg.conf.in	2007-03-14 23:05:47.000000000 +0000
+++ etc/makepkg.conf.in.new	2007-05-20 15:24:27.000000000 +0000
@@ -21,8 +21,8 @@
 #-- Exclusive: will only run on @CARCHFLAGS@
 # -mtune builds exclusively for an architecture
 # -mcpu optimizes for an architecture, but builds for the whole
processor family -CFLAGS="- at ARCHSWITCH@=@CARCHFLAGS@ -O2 -pipe"
-CXXFLAGS="- at ARCHSWITCH@=@CARCHFLAGS@ -O2 -pipe"
+CFLAGS="- at ARCHSWITCH@=@CARCHFLAGS@ -mtune=generic -O2 -pipe"
+CXXFLAGS="- at ARCHSWITCH@=@CARCHFLAGS@ -mtune=generic -O2 -pipe"
 #-- Make Flags: change this for DistCC/SMP systems
 #MAKEFLAGS="-j2"
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc4.2.mtune.patch
Type: text/x-patch
Size: 613 bytes
Desc: not available
URL: <http://archlinux.org/pipermail/pacman-dev/attachments/20070520/040dea7b/attachment.bin>


More information about the pacman-dev mailing list