From 2760828e9dff1250c1160b7df2f376107ffe134f Mon Sep 17 00:00:00 2001 From: Andrew Fyfe Date: Mon, 28 May 2007 23:49:46 +0100 Subject: 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 --- etc/makepkg.conf.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/makepkg.conf.in') 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" -- cgit v1.2.3-24-g4f1b