[arch-commits] Commit in binutils/trunk (PKGBUILD)
Allan McRae
allan at nymeria.archlinux.org
Wed Apr 10 07:34:20 UTC 2013
Date: Wednesday, April 10, 2013 @ 09:34:20
Author: allan
Revision: 182407
fix build issue with CPPFLAGS
Modified:
binutils/trunk/PKGBUILD
----------+
PKGBUILD | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-04-10 07:33:05 UTC (rev 182406)
+++ PKGBUILD 2013-04-10 07:34:20 UTC (rev 182407)
@@ -5,7 +5,7 @@
pkgname=binutils
pkgver=2.23.2
-pkgrel=1
+pkgrel=2
pkgdesc="A set of programs to assemble and manipulate binary and object files"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/binutils/"
@@ -21,16 +21,22 @@
'dfde4428f08d91f309cdcfe92bf28d08'
'34e439ce23213a91e2af872dfbb5094c')
-build() {
+prepare() {
cd ${srcdir}/binutils-${pkgver}
# http://sourceware.org/git/?p=binutils.git;a=patch;h=e02bf935
# http://sourceware.org/git/?p=binutils.git;a=patch;h=935f8542
patch -p1 -i ${srcdir}/binutils-2.23.2-texinfo-5.0.patch
- cd ${srcdir}
- mkdir binutils-build && cd binutils-build
+ # hack! - libiberty configure tests for header files using "$CPP $CPPFLAGS"
+ sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
+ mkdir ${srcdir}/binutils-build
+}
+
+build() {
+ cd ${srcdir}/binutils-build
+
${srcdir}/binutils-${pkgver}/configure --prefix=/usr \
--with-lib-path=/usr/lib:/usr/local/lib \
--with-bugurl=https://bugs.archlinux.org/ \
More information about the arch-commits
mailing list