summaryrefslogtreecommitdiff
path: root/libre/xtensa-unknown-elf-gcc/PKGBUILD
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-07-02 21:04:01 -0300
committerMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-07-02 21:04:01 -0300
commit0ebb087df0decfe020c909e249f86e1bd5628d22 (patch)
tree409ded8acfc32236a01cfd09164188cd7050ba72 /libre/xtensa-unknown-elf-gcc/PKGBUILD
parentf23143833b78f880e6184c7f0eb25ba969b7945a (diff)
downloadabslibre-0ebb087df0decfe020c909e249f86e1bd5628d22.tar.gz
abslibre-0ebb087df0decfe020c909e249f86e1bd5628d22.tar.bz2
abslibre-0ebb087df0decfe020c909e249f86e1bd5628d22.zip
xtensa-unknown-elf-{binutils,gcc,glibc,linux-libre-api-headers}: adding and fixing cross pkg
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