[arch-commits] Commit in libstdc++5/trunk (PKGBUILD)
Allan McRae
allan at archlinux.org
Sat Sep 10 01:24:03 UTC 2011
Date: Friday, September 9, 2011 @ 21:24:02
Author: allan
Revision: 137599
upgpkg: libstdc++5 3.3.6-4
old package rebuild
Modified:
libstdc++5/trunk/PKGBUILD
----------+
PKGBUILD | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2011-09-10 00:44:23 UTC (rev 137598)
+++ PKGBUILD 2011-09-10 01:24:02 UTC (rev 137599)
@@ -3,7 +3,7 @@
pkgname=libstdc++5
pkgver=3.3.6
-pkgrel=3
+pkgrel=4
pkgdesc="GNU Standard C++ library version 3"
arch=('i686' 'x86_64')
url="http://gcc.gnu.org"
@@ -18,16 +18,21 @@
'088e0807e677010cafe4e590e8711be1')
build(){
- export CFLAGS=$(echo $CFLAGS | sed 's|-mtune=generic||')
- export CXXFLAGS=$(echo $CXXFLAGS | sed 's|-mtune=generic||')
+ export CFLAGS="-march=${CARCH/_/-} -O2 -pipe"
+ export CXXFLAGS="-march=${CARCH/_/-} -O2 -pipe"
+
cd ${srcdir}/gcc-${pkgver}
if [ "$CARCH" = "x86_64" ]; then
- patch -Np0 -i ../gcc-3.4.3-no_multilib_amd64.patch
+ patch -Np0 -i $srcdir/gcc-3.4.3-no_multilib_amd64.patch
fi
+
+ # fix build issue with recent gcc
+ sed -i "s#O_CREAT#O_CREAT, 0666#" gcc/collect2.c
# No fixincludes
sed -i -e 's@\./fixinc\.sh at -c true@' gcc/Makefile.in
+
mkdir ../gcc-build
cd ../gcc-build
../gcc-${pkgver}/configure --prefix=/usr --enable-shared \
More information about the arch-commits
mailing list