[arch-commits] CVS update of extra/system/gcc34 (PKGBUILD)
Eric Belanger
eric at archlinux.org
Sat Jul 28 06:10:27 UTC 2007
Date: Saturday, July 28, 2007 @ 02:10:27
Author: eric
Path: /home/cvs-extra/extra/system/gcc34
Modified: PKGBUILD (1.1 -> 1.2)
upgpkg: gcc34 3.4.6-1
added CFLAGS for x86_64
----------+
PKGBUILD | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
Index: extra/system/gcc34/PKGBUILD
diff -u extra/system/gcc34/PKGBUILD:1.1 extra/system/gcc34/PKGBUILD:1.2
--- extra/system/gcc34/PKGBUILD:1.1 Mon Jul 9 18:44:35 2007
+++ extra/system/gcc34/PKGBUILD Sat Jul 28 02:10:26 2007
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD,v 1.1 2007/07/09 22:44:35 tpowa Exp $
+# $Id: PKGBUILD,v 1.2 2007/07/28 06:10:26 eric Exp $
# Maintainer: Jan de Groot <jgc at archlinux.org>
pkgname=gcc34
pkgver=3.4.6
@@ -15,8 +15,13 @@
build() {
export MAKEFLAGS="-j1"
# use "defaults" CFLAGS and CXXFLAGS
- export CFLAGS="-march=i686 -O2 -pipe"
- export CXXFLAGS="-march=i686 -O2 -pipe"
+ if [ "${CARCH}" = "i686" ]; then
+ export CFLAGS="-march=i686 -O2 -pipe"
+ export CXXFLAGS="-march=i686 -O2 -pipe"
+ else
+ export CFLAGS="-march=x86-64 -O2 -pipe"
+ export CXXFLAGS="-march=x86-64 -O2 -pipe"
+ fi
cd ${startdir}/src/gcc-${pkgver}
More information about the arch-commits
mailing list