[arch-commits] CVS update of core/devel/gcc (PKGBUILD)

andyrtr at archlinux.org andyrtr at archlinux.org
Fri Oct 12 20:38:22 UTC 2007


    Date: Friday, October 12, 2007 @ 16:38:22
  Author: andyrtr
    Path: /home/cvs-core/core/devel/gcc

Modified: PKGBUILD (1.83 -> 1.84)

upgpkg: gcc 4.2.2-2
fixed broken objc compiler


----------+
 PKGBUILD |   13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)


Index: core/devel/gcc/PKGBUILD
diff -u core/devel/gcc/PKGBUILD:1.83 core/devel/gcc/PKGBUILD:1.84
--- core/devel/gcc/PKGBUILD:1.83	Tue Oct  9 17:40:06 2007
+++ core/devel/gcc/PKGBUILD	Fri Oct 12 16:38:22 2007
@@ -1,8 +1,8 @@
-# $Id: PKGBUILD,v 1.83 2007/10/09 21:40:06 andyrtr Exp $
+# $Id: PKGBUILD,v 1.84 2007/10/12 20:38:22 andyrtr Exp $
 # Maintainer: Jan de Groot <jgc at archlinux.org>
 pkgname=gcc
 pkgver=4.2.2
-pkgrel=1
+pkgrel=2
 #_snapshot=4.2.1-RC-20070703
 pkgdesc="The GNU Compiler Collection"
 arch=(i686 x86_64)
@@ -11,13 +11,14 @@
 url="http://gcc.gnu.org"
 depends=('binutils>=2.18' "gcc-libs>=${pkgver}")
 options=('!libtool')
-source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++}-${pkgver}.tar.bz2
+source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++,objc}-${pkgver}.tar.bz2
 	#ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-{core,g++}-${_snapshot}.tar.bz2
 	ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/libstdc++-man-4.2.0.tar.bz2
 	gcc_pure64.patch
 	gcc-hash-style-both.patch)
 md5sums=('b02a013580a9555c7c8f2ca554c02722'
          '1aa75e06ca16518f16d5df67ba98a392'
+         '36933966adc9cc888879adec0a82cf2f'
          'e70d37c0623b15e90cff47d91816a941'
          '8fc86e4c4d1f4ec8b226307d39fbd9e3'
          '611fbd749019f0ce2fad36fda17e93dd')
@@ -45,7 +46,7 @@
   mkdir build
   cd build
   ../configure --prefix=/usr --enable-shared \
-      --enable-languages=c,c++ --enable-threads=posix \
+      --enable-languages=c,c++,objc --enable-threads=posix \
       --enable-__cxa_atexit  --disable-multilib --libdir=/usr/lib \
       --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch \
       --with-tune=generic
@@ -63,4 +64,8 @@
   # Remove libraries and translations in gcc-libs
   rm -f ${startdir}/pkg/usr/lib/lib*
   find ${startdir}/pkg -name libstdc++.mo -delete
+
+  # Remove objc files - objc need to be build to have it known to gcc binary
+  rm -f ${startdir}/pkg//usr/lib/gcc/x86_64-unknown-linux-gnu/${pkgver}/cc1obj
+  rm -rf ${startdir}/pkg/usr/lib/gcc/x86_64-unknown-linux-gnu/${pkgver}/include/objc
 }




More information about the arch-commits mailing list