From: Andrew Fyfe Date: Mon, 28 May 2007 22:49:46 +0000 (+0100) Subject: Add -mtune=generic to C{,XX}FLAGS in makepkg.conf X-Git-Url: http://lithium.sol/gitweb/?p=pacman;a=commitdiff_plain;h=2760828e9dff1250c1160b7df2f376107ffe134f 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 --- diff --git a/etc/makepkg.conf.in b/etc/makepkg.conf.in index 7ca1080..6add647 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"