mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
core/gcc to 6.3.1-1
This commit is contained in:
parent
8f2474bfd7
commit
ef150c0e7c
1 changed files with 46 additions and 24 deletions
|
@ -1,4 +1,4 @@
|
||||||
# $Id: PKGBUILD 141367 2011-10-30 06:46:41Z allan $
|
# $Id$
|
||||||
# Maintainer: Allan McRae <allan@archlinux.org>
|
# Maintainer: Allan McRae <allan@archlinux.org>
|
||||||
|
|
||||||
# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
|
# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
|
||||||
|
@ -16,11 +16,11 @@
|
||||||
noautobuild=1
|
noautobuild=1
|
||||||
|
|
||||||
pkgname=('gcc' 'gcc-libs' 'gcc-fortran' 'gcc-objc' 'gcc-go')
|
pkgname=('gcc' 'gcc-libs' 'gcc-fortran' 'gcc-objc' 'gcc-go')
|
||||||
pkgver=6.2.1
|
pkgver=6.3.1
|
||||||
_pkgver=6
|
_pkgver=6
|
||||||
_islver=0.16.1
|
_islver=0.16.1
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
_commit=c2103c17
|
_commit=4ca53f06ff7d346ef8021a23108f23a5406a0417
|
||||||
pkgdesc="The GNU Compiler Collection"
|
pkgdesc="The GNU Compiler Collection"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
license=('GPL' 'LGPL' 'FDL' 'custom')
|
license=('GPL' 'LGPL' 'FDL' 'custom')
|
||||||
|
@ -31,7 +31,7 @@ options=('!emptydirs' '!distcc')
|
||||||
source=(https://github.com/gcc-mirror/gcc/archive/${_commit}.tar.gz
|
source=(https://github.com/gcc-mirror/gcc/archive/${_commit}.tar.gz
|
||||||
http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2
|
http://isl.gforge.inria.fr/isl-${_islver}.tar.bz2
|
||||||
0001-ARMv5-disable-LDRD-STRD.patch)
|
0001-ARMv5-disable-LDRD-STRD.patch)
|
||||||
md5sums=('bfa1b0a973f829beb14fe96e8c14225c'
|
md5sums=('e65d06ed7c00e68bc84f6989752a09eb'
|
||||||
'ac1f25a0677912952718a51f5bc20f32'
|
'ac1f25a0677912952718a51f5bc20f32'
|
||||||
'a5165d78c473b487637d293a49e01740')
|
'a5165d78c473b487637d293a49e01740')
|
||||||
|
|
||||||
|
@ -47,7 +47,10 @@ prepare() {
|
||||||
# Do not run fixincludes
|
# Do not run fixincludes
|
||||||
sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
|
sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
|
||||||
|
|
||||||
# Arch Linux installs 64bit libraries /lib
|
# Arch Linux installs x86_64 libraries /lib
|
||||||
|
[[ $CARCH == "x86_64" ]] && sed -i '/m64=/s/lib64/lib/' gcc/config/i386/t-linux64
|
||||||
|
|
||||||
|
# Arch Linux ARM installs aarch64 libraries /lib
|
||||||
[[ $CARCH == "aarch64" ]] && sed -i '/lp64=/s/lib64/lib/' gcc/config/aarch64/t-aarch64-linux
|
[[ $CARCH == "aarch64" ]] && sed -i '/lp64=/s/lib64/lib/' gcc/config/aarch64/t-aarch64-linux
|
||||||
|
|
||||||
# hack! - some configure tests for header files using "$CPP $CPPFLAGS"
|
# hack! - some configure tests for header files using "$CPP $CPPFLAGS"
|
||||||
|
@ -74,18 +77,30 @@ build() {
|
||||||
CXXFLAGS=${CXXFLAGS/-pipe/}
|
CXXFLAGS=${CXXFLAGS/-pipe/}
|
||||||
|
|
||||||
${srcdir}/gcc/configure --prefix=/usr \
|
${srcdir}/gcc/configure --prefix=/usr \
|
||||||
--libdir=/usr/lib --libexecdir=/usr/lib \
|
--libdir=/usr/lib \
|
||||||
--mandir=/usr/share/man --infodir=/usr/share/info \
|
--libexecdir=/usr/lib \
|
||||||
|
--mandir=/usr/share/man \
|
||||||
|
--infodir=/usr/share/info \
|
||||||
--with-bugurl=https://github.com/archlinuxarm/PKGBUILDs/issues \
|
--with-bugurl=https://github.com/archlinuxarm/PKGBUILDs/issues \
|
||||||
--enable-languages=c,c++,fortran,go,lto,objc,obj-c++ \
|
--enable-languages=c,c++,fortran,go,lto,objc,obj-c++ \
|
||||||
--enable-shared --enable-threads=posix \
|
--enable-shared \
|
||||||
--with-system-zlib --with-isl --enable-__cxa_atexit \
|
--enable-threads=posix \
|
||||||
--disable-libunwind-exceptions --enable-clocale=gnu \
|
--with-system-zlib \
|
||||||
--disable-libstdcxx-pch --disable-libssp \
|
--with-isl \
|
||||||
--enable-gnu-unique-object --enable-linker-build-id \
|
--enable-__cxa_atexit \
|
||||||
--enable-lto --enable-plugin --enable-install-libiberty \
|
--disable-libunwind-exceptions \
|
||||||
--with-linker-hash-style=gnu --enable-gnu-indirect-function \
|
--enable-clocale=gnu \
|
||||||
--disable-multilib --disable-werror \
|
--disable-libstdcxx-pch \
|
||||||
|
--disable-libssp \
|
||||||
|
--enable-gnu-unique-object \
|
||||||
|
--enable-linker-build-id \
|
||||||
|
--enable-lto \
|
||||||
|
--enable-plugin \
|
||||||
|
--enable-install-libiberty \
|
||||||
|
--with-linker-hash-style=gnu \
|
||||||
|
--enable-gnu-indirect-function \
|
||||||
|
--disable-multilib \
|
||||||
|
--disable-werror \
|
||||||
--enable-checking=release \
|
--enable-checking=release \
|
||||||
$CONFIGFLAG
|
$CONFIGFLAG
|
||||||
|
|
||||||
|
@ -126,10 +141,15 @@ package_gcc-libs()
|
||||||
libgomp \
|
libgomp \
|
||||||
libitm \
|
libitm \
|
||||||
libquadmath \
|
libquadmath \
|
||||||
libstdc++-v3/src; do
|
libsanitizer/{a,l,ub}san \
|
||||||
|
libstdc++-v3/src \
|
||||||
|
libvtv; do
|
||||||
make -C $CHOST/$lib DESTDIR=${pkgdir} install-toolexeclibLTLIBRARIES
|
make -C $CHOST/$lib DESTDIR=${pkgdir} install-toolexeclibLTLIBRARIES
|
||||||
done
|
done
|
||||||
|
|
||||||
|
[[ $CARCH == "x86_64" || $CARCH == "aarch64" ]] && \
|
||||||
|
make -C $CHOST/libsanitizer/tsan DESTDIR=${pkgdir} install-toolexeclibLTLIBRARIES
|
||||||
|
|
||||||
make -C $CHOST/libobjc DESTDIR=${pkgdir} install-libs
|
make -C $CHOST/libobjc DESTDIR=${pkgdir} install-libs
|
||||||
|
|
||||||
make -C $CHOST/libstdc++-v3/po DESTDIR=${pkgdir} install
|
make -C $CHOST/libstdc++-v3/po DESTDIR=${pkgdir} install
|
||||||
|
@ -186,6 +206,8 @@ package_gcc()
|
||||||
install-nodist_libsubincludeHEADERS
|
install-nodist_libsubincludeHEADERS
|
||||||
make -C $CHOST/libitm DESTDIR=${pkgdir} install-nodist_toolexeclibHEADERS
|
make -C $CHOST/libitm DESTDIR=${pkgdir} install-nodist_toolexeclibHEADERS
|
||||||
make -C $CHOST/libquadmath DESTDIR=${pkgdir} install-nodist_libsubincludeHEADERS
|
make -C $CHOST/libquadmath DESTDIR=${pkgdir} install-nodist_libsubincludeHEADERS
|
||||||
|
make -C $CHOST/libsanitizer DESTDIR=${pkgdir} install-nodist_{saninclude,toolexeclib}HEADERS
|
||||||
|
make -C $CHOST/libsanitizer/asan DESTDIR=${pkgdir} install-nodist_toolexeclibHEADERS
|
||||||
|
|
||||||
make -C libiberty DESTDIR=${pkgdir} install
|
make -C libiberty DESTDIR=${pkgdir} install
|
||||||
# install PIC version of libiberty
|
# install PIC version of libiberty
|
||||||
|
|
Loading…
Reference in a new issue