summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorAndrew Fyfe <andrew@neptune-one.net>2007-05-28 23:49:46 +0100
committerAndrew Fyfe <andrew@neptune-one.net>2007-05-28 23:52:02 +0100
commit2760828e9dff1250c1160b7df2f376107ffe134f (patch)
treeebbe9d9cf05d3d64afda6a8421bcc7d338c2169f /etc
parent124693af37f175703328be0b34a68ed3e50a6c64 (diff)
downloadpacman-2760828e9dff1250c1160b7df2f376107ffe134f.tar.xz
Add -mtune=generic to C{,XX}FLAGS in makepkg.conf
GCC-4.2.0 requires -mtune=generic to produce binaries optimized for generic i686/x86_64. By default it tries to optimize a for the host system building the package. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
Diffstat (limited to 'etc')
-rw-r--r--etc/makepkg.conf.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/makepkg.conf.in b/etc/makepkg.conf.in
index 7ca1080e..6add6473 100644
--- a/etc/makepkg.conf.in
+++ b/etc/makepkg.conf.in
@@ -29,8 +29,8 @@ CHOST="@CHOST@"
#-- 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="-@ARCHSWITCH@=@CARCHFLAGS@ -O2 -pipe"
-CXXFLAGS="-@ARCHSWITCH@=@CARCHFLAGS@ -O2 -pipe"
+CFLAGS="-@ARCHSWITCH@=@CARCHFLAGS@ -mtune=generic -O2 -pipe"
+CXXFLAGS="-@ARCHSWITCH@=@CARCHFLAGS@ -mtune=generic -O2 -pipe"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"