summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-23 00:09:51 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-23 00:09:51 -0300
commitf9410f135a83652340458d3d5f7df4a8342b605c (patch)
treecd51ffd91df4b6e1d6ec84bd4d72577c9845fb4a /cross
parentd794e216fab8198bc132a1f34b37daf2d4e6dc05 (diff)
cross-gcc: add specific configure for xtensa based on 4.8.2-8 version
Diffstat (limited to 'cross')
-rw-r--r--cross/cross-gcc/PKGBUILD58
1 files changed, 39 insertions, 19 deletions
diff --git a/cross/cross-gcc/PKGBUILD b/cross/cross-gcc/PKGBUILD
index 57e559e33..9a42b7e00 100644
--- a/cross/cross-gcc/PKGBUILD
+++ b/cross/cross-gcc/PKGBUILD
@@ -128,7 +128,7 @@ pkgname=$_target-$_pkgname
makedepends=('binutils>=2.24' 'libmpc' 'cloog' 'doxygen')
pkgver=4.9.1
_pkgver=4.9
-pkgrel=2
+pkgrel=2.1
_snapshot=4.9-20140903
pkgdesc="The GNU Compiler Collection"
arch=('i686' 'x86_64' 'mips64el')
@@ -195,22 +195,38 @@ build() {
CFLAGS=${CFLAGS/-pipe/}
CXXFLAGS=${CXXFLAGS/-pipe/}
- ${srcdir}/${_basedir}/configure --prefix=/usr \
- --libdir=/usr/lib --libexecdir=/usr/lib \
- --mandir=/usr/share/man --infodir=/usr/share/info \
- --with-bugurl=https://labs.parabola.nu/ \
- --enable-languages=c,c++,lto --disable-static \
- --enable-shared --enable-threads=posix \
- --with-system-zlib --enable-__cxa_atexit \
- --disable-libunwind-exceptions --enable-clocale=gnu \
- --disable-libstdcxx-pch --disable-libssp \
- --enable-gnu-unique-object --enable-linker-build-id \
- --enable-cloog-backend=isl \
- --disable-isl-version-check --disable-cloog-version-check \
- --enable-lto --enable-plugin --enable-install-libiberty \
- --with-linker-hash-style=gnu \
- --disable-multilib --disable-werror \
- --enable-checking=release --target=$_target --program-prefix=$_target-
+ if [[ $_target == xtensa-unknown-elf ]]; then
+ ${srcdir}/${_basedir}/configure --prefix=/usr \
+ --libdir=/usr/lib --libexecdir=/usr/lib \
+ --mandir=/usr/share/man --infodir=/usr/share/info \
+ --with-bugurl=https://labs.parabola.nu/ \
+ --disable-nls \
+ --disable-shared \
+ --disable-threads \
+ --enable-languages=c \
+ --disable-libquadmath \
+ --disable-libssp \
+ --with-newlib \
+ --disable-multilib --disable-werror \
+ --target=$_target --program-prefix=$_target-
+ else
+ ${srcdir}/${_basedir}/configure --prefix=/usr \
+ --libdir=/usr/lib --libexecdir=/usr/lib \
+ --mandir=/usr/share/man --infodir=/usr/share/info \
+ --with-bugurl=https://labs.parabola.nu/ \
+ --enable-languages=c,c++,lto --disable-static \
+ --enable-shared --enable-threads=posix \
+ --with-system-zlib --enable-__cxa_atexit \
+ --disable-libunwind-exceptions --enable-clocale=gnu \
+ --disable-libstdcxx-pch --disable-libssp \
+ --enable-gnu-unique-object --enable-linker-build-id \
+ --enable-cloog-backend=isl \
+ --disable-isl-version-check --disable-cloog-version-check \
+ --enable-lto --enable-plugin --enable-install-libiberty \
+ --with-linker-hash-style=gnu \
+ --disable-multilib --disable-werror \
+ --enable-checking=release --target=$_target --program-prefix=$_target-
+ fi
make all-$_pkgname
}
@@ -218,7 +234,7 @@ package() {
pkgdesc="The GNU Compiler Collection - C and C++ frontends"
depends=("$_target-binutils>=2.24" 'libmpc' 'cloog')
groups=('cross-devel')
- provides=("$_pkgname=$pkgver-$pkgrel")
+ provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname" "$_pkgname-ada" "$_pkgname-fortran" "$_pkgname-go" "$_pkgname-objc")
install=$_pkgname.install
@@ -228,7 +244,11 @@ package() {
c++.install-common install-headers install-plugin install-lto-wrapper
install -m755 $_pkgname/gcov $pkgdir/usr/bin/
- install -m755 -t $pkgdir/${_libdir}/ $_pkgname/{cc1,cc1plus,collect2,lto1}
+ if [[ $_target == xtensa-unknown-elf ]]; then
+ install -m755 -t $pkgdir/${_libdir}/ $_pkgname/{cc1,collect2,lto1}
+ else
+ install -m755 -t $pkgdir/${_libdir}/ $_pkgname/{cc1,cc1plus,collect2,lto1}
+ fi
make DESTDIR=${pkgdir} install-fixincludes
make -C $_pkgname DESTDIR=${pkgdir} install-mkheaders