summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-12 19:09:28 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-13 13:56:56 -0300
commite2c7801bb0a3604a278fdbebf36a59370c1ef66c (patch)
tree6604eb8f135581e14184ed8d79242ba3682f5ed1 /libre
parent958fae2c687c7dc5c369546558d4cea9a25429a1 (diff)
downloadabslibre-e2c7801bb0a3604a278fdbebf36a59370c1ef66c.tar.gz
abslibre-e2c7801bb0a3604a278fdbebf36a59370c1ef66c.tar.bz2
abslibre-e2c7801bb0a3604a278fdbebf36a59370c1ef66c.zip
gcc-libs-static: update pkg
Diffstat (limited to 'libre')
-rw-r--r--libre/gcc-libs-static/PKGBUILD42
1 files changed, 25 insertions, 17 deletions
diff --git a/libre/gcc-libs-static/PKGBUILD b/libre/gcc-libs-static/PKGBUILD
index 084875611..cdd727eb0 100644
--- a/libre/gcc-libs-static/PKGBUILD
+++ b/libre/gcc-libs-static/PKGBUILD
@@ -6,20 +6,22 @@ pkgname=gcc-libs-static
pkgver=5.3.0
_pkgver=5
_islver=0.15
-pkgrel=3
-#_snapshot=5-20150623
+pkgrel=5a
+_snapshot=5-20160209
pkgdesc="The GNU Compiler Collection (static libraries only)"
arch=('i686' 'x86_64' 'armv7h')
license=('GPL' 'LGPL' 'FDL' 'custom')
url="http://gcc.gnu.org"
-makedepends=('binutils>=2.25' 'libmpc' 'glibc-static')
+makedepends=('binutils>=2.26' 'libmpc' 'gcc-ada')
checkdepends=('dejagnu' 'inetutils')
options=('!docs' 'staticlibs' '!emptydirs')
-source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2
- #ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-${_snapshot}.tar.bz2
- http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2)
-md5sums=('c9616fd448f980259c31de613e575719'
- '8428efbbc6f6e2810ce5c1ba73ecf98c')
+source=(#ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2
+ ftp://gcc.gnu.org/pub/gcc/snapshots/${_snapshot}/gcc-${_snapshot}.tar.bz2
+ http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2
+ Unlink-the-response-file.patch)
+md5sums=('499161c65b639aa5c12a14944582b7ec'
+ '8428efbbc6f6e2810ce5c1ba73ecf98c'
+ '1f4d4ef71004261376d26d5ba6a84499')
if [ -n "${_snapshot}" ]; then
_basedir=gcc-${_snapshot}
@@ -46,6 +48,9 @@ prepare() {
# hack! - some configure tests for header files using "$CPP $CPPFLAGS"
sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {libiberty,gcc}/configure
+ # https://bugs.archlinux.org/task/47874 - commit f591a95d
+ patch -p1 -i $srcdir/Unlink-the-response-file.patch
+
mkdir ${srcdir}/gcc-build
}
@@ -61,7 +66,7 @@ build() {
${srcdir}/${_basedir}/configure --prefix=/usr \
--libdir=/usr/lib \
--with-bugurl=https://labs.parabola.nu/ \
- --enable-languages=c,c++,fortran,lto,objc,obj-c++ \
+ --enable-languages=c,c++,ada,fortran,lto,objc,obj-c++ \
--disable-shared --enable-threads=posix --enable-libmpx \
--with-system-zlib --with-isl --enable-__cxa_atexit \
--disable-libunwind-exceptions --enable-clocale=gnu \
@@ -72,10 +77,10 @@ build() {
--disable-multilib --disable-werror \
--enable-checking=release
-# --libexecdir=/usr/lib
-# --enable-languages=go
-
make
+
+ # --enble-languages=go
+
}
check() {
@@ -98,7 +103,7 @@ package()
cd ${srcdir}/gcc-build
-# make -C $CHOST/libgcc DESTDIR=${pkgdir} install
+ make -C $CHOST/libgcc DESTDIR=${pkgdir} install
for lib in libatomic \
libcilkrts \
@@ -111,14 +116,17 @@ package()
libvtv; do
make -C $CHOST/$lib DESTDIR=${pkgdir} install-toolexeclibLTLIBRARIES
done
-
-# libgo
+ # libgo
[[ $CARCH == "x86_64" ]] && \
make -C $CHOST/libsanitizer/tsan DESTDIR=${pkgdir} install-toolexeclibLTLIBRARIES
- make -C $CHOST/libobjc DESTDIR=${pkgdir} install-libs
+ make -C $CHOST/libobjc DESTDIR=${pkgdir} install
make -C $CHOST/libmpx DESTDIR=${pkgdir} install
- rm ${pkgdir}/usr/lib/libmpx.spec
+ rm -v ${pkgdir}/usr/lib/libmpx.spec
+
+ # remove unused files
+ rm -vr ${pkgdir}/usr/lib/gcc
+ rm -v ${pkgdir}/usr/lib/libstdc++.a
}