summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-05-16 00:34:08 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-05-16 00:34:08 -0300
commitf1095b9c1d21bc035ac9867510b4114906d64994 (patch)
tree13af227e426565c888b7cd16e879f407c08f72e6
parente336aa546fc6d876e90b4a59453d30e9e582a582 (diff)
cross-mips64el-unknown-linux-gnu-gcc2
Does not build. For some reason libgcc changes the includedir from /usr/lib/cross- to /usr/lib/cross-/ and fails to find pthread.h
-rw-r--r--cross-mips64el-unknown-linux-gnu-gcc2/PKGBUILD60
1 files changed, 60 insertions, 0 deletions
diff --git a/cross-mips64el-unknown-linux-gnu-gcc2/PKGBUILD b/cross-mips64el-unknown-linux-gnu-gcc2/PKGBUILD
new file mode 100644
index 0000000..b55c902
--- /dev/null
+++ b/cross-mips64el-unknown-linux-gnu-gcc2/PKGBUILD
@@ -0,0 +1,60 @@
+# Maintainer: Nicolas Reynolds <fauno@kiwwwi.com.ar>
+#
+
+_pkgname=gcc
+_target=mips64el-unknown-linux-gnu
+_sysroot=/usr/lib/cross-${_target}
+
+pkgname=cross-${_target}-gcc2
+pkgver=4.5.3
+pkgrel=1
+pkgdesc="The GNU C Compiler for $_target stage2"
+arch=(i686 x86_64)
+license=(GPL)
+replaces=("cross-${_target}-gcc1")
+makedepends=("cross-${_target}-binutils"
+ "cross-${_target}-linux-api-headers"
+ "cross-${_target}-gcc1"
+ "cross-${_target}-eglibc1")
+options=(!strip)
+source=(http://ftp.gnu.org/gnu/$_pkgname/$_pkgname-$pkgver/$_pkgname-$pkgver.tar.bz2)
+md5sums=('8e0b5c12212e185f3e4383106bfa9cc6')
+
+build() {
+ cd $srcdir
+# export PATH="${_sysroot}/bin:$PATH"
+
+ unset CFLAGS CXXFLAGS LDFLAGS
+
+ [[ $NOEXTRACT -eq 1 ]] || mkdir build
+ cd build
+
+# No bindir
+ #[[ $NOEXTRACT -eq 1 ]] || ../$_pkgname-$pkgver/configure \
+ BUILD_CC=gcc \
+ CC=gcc \
+ CXX=g++ \
+ AR=$_sysroot/bin/$_target-ar \
+ RANLIB=$_sysroot/bin/$_target-ranlib \
+ ../$_pkgname-$pkgver/configure \
+ --prefix=$_sysroot \
+ --target=$_target \
+ --program-prefix=${_target}- \
+ --includedir=$_sysroot/include \
+ --oldincludedir=$_sysroot/include \
+ --disable-bootstrap \
+ --disable-nls \
+ --disable-libssp \
+ --disable-libgomp \
+ --disable-libmudflap \
+ --disable-multilib \
+ --enable-languages=c
+ make
+}
+
+package() {
+ cd $srcdir/build
+ export PATH="${_sysroot}/bin:$PATH"
+
+ make DESTDIR=$pkgdir install
+}