summaryrefslogtreecommitdiff
path: root/libre/xtensa-unknown-elf-gcc/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@parabola.nu>2013-07-03 10:34:30 -0300
committerNicolás Reynolds <fauno@parabola.nu>2013-07-03 10:34:30 -0300
commit849dffc80155f94d974e0f033cc8947852aefec3 (patch)
treed6c3c9e64b4c4dbf3d38583e2fee2bfdf09113b3 /libre/xtensa-unknown-elf-gcc/PKGBUILD
parent8647aee53c2f9f5458e57fe7ac212da40a555594 (diff)
parent0ebb087df0decfe020c909e249f86e1bd5628d22 (diff)
Merge branch 'master' of vparabola:abslibre
Diffstat (limited to 'libre/xtensa-unknown-elf-gcc/PKGBUILD')
-rw-r--r--libre/xtensa-unknown-elf-gcc/PKGBUILD51
1 files changed, 28 insertions, 23 deletions
diff --git a/libre/xtensa-unknown-elf-gcc/PKGBUILD b/libre/xtensa-unknown-elf-gcc/PKGBUILD
index 5472ba164..6081151b7 100644
--- a/libre/xtensa-unknown-elf-gcc/PKGBUILD
+++ b/libre/xtensa-unknown-elf-gcc/PKGBUILD
@@ -5,9 +5,9 @@
_pkgname=gcc
_target="xtensa-unknown-elf"
-_sysroot="/usr/${_target}"
+_sysroot="/usr/$CHOST/${_target}"
-pkgname="${_target}-gcc
+pkgname=${_target}-gcc
pkgver=4.8.1
pkgrel=1
#_snapshot=4.8-20130502
@@ -15,7 +15,7 @@ pkgdesc="The GNU Compiler Collection for Xtensa processors"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL' 'LGPL' 'FDL' 'custom')
url="http://gcc.gnu.org"
-makedepends=("${_target}-binutils>=2.23" 'libmpc' 'cloog' 'gcc-ada' 'doxygen')
+makedepends=("binutils>=2.23" 'libmpc' 'cloog' 'gcc-ada' 'doxygen')
checkdepends=('dejagnu' 'inetutils')
options=('!libtool' '!emptydirs')
source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2)
@@ -54,26 +54,31 @@ 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/ \
+ LD_LIBRARY_PATH=/usr/lib ${srcdir}/${_basedir}/configure --prefix=/usr \
+ --disable-shared --disable-threads --disable-multilib \
--enable-languages=c \
- --disable-shared --enable-threads=posix \
- --with-system-zlib --enable-__cxa_atexit \
- --disable-libunwind-exceptions --enable-clocale=gnu \
- --disable-libstdcxx-pch \
- --enable-gnu-unique-object --enable-linker-build-id \
- --enable-cloog-backend=isl --disable-cloog-version-check \
- --enable-lto --enable-gold --enable-ld=default \
- --enable-plugin --with-plugin-ld=ld.gold \
- --with-linker-hash-style=gnu --disable-install-libiberty \
- --disable-multilib --disable-libssp --disable-werror \
- --enable-checking=release \
- --target=${_target} \
- --with-sysroot=${_sysroot} \
- --with-arch=xtensa \
- --with-newlib
+ --disable-nls \
+ --target=$_target
+# --build=x86_64-unknown-linux-gnu \
+# --without-headers \
+# --disable-multilib --disable-libssp --disable-werror \
+# --libdir=/usr/lib --libexecdir=/usr/lib \
+# --mandir=/usr/share/man --infodir=/usr/share/info \
+# --with-bugurl=https://labs.parabola.nu/ \
+# --disable-shared --enable-threads=posix \
+# --with-system-zlib --enable-__cxa_atexit \
+# --disable-libunwind-exceptions --enable-clocale=gnu \
+# --disable-libstdcxx-pch \
+# --enable-gnu-unique-object --enable-linker-build-id \
+# --enable-cloog-backend=isl --disable-cloog-version-check \
+# --enable-lto --enable-gold --enable-ld=default \
+# --enable-plugin --with-plugin-ld=ld.gold \
+# --with-linker-hash-style=gnu --disable-install-libiberty \
+# --with-as=/usr/bin/${_target}-as --with-ld=/usr/bin/${_target}-ld \
+# --disable-multilib --disable-libssp --disable-werror \
+# --enable-checking=release \
+# --target=${_target} \
+# --with-newlib
make
# make documentation
@@ -96,7 +101,7 @@ check() {
package()
{
pkgdesc="The GNU Compiler Collection"
- depends=("gcc-libs=$pkgver-$pkgrel" "${_target}-binutils>=2.23" 'libmpc' 'cloog')
+ depends=("gcc-libs=$pkgver-$pkgrel" 'binutils>=2.23' 'libmpc' 'cloog')
groups=("${_target}-devel")
install=${_target}-gcc.install