From d073b0c4e5b66e0d67350c9a3de9cee04f9b99cc Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Mon, 9 Jan 2012 17:41:25 -0300 Subject: cross/cross-mips64el-unknown-linux-gnu-{glibc,binutils,gcc} --- .../cross-mips64el-unknown-linux-gnu-gcc/PKGBUILD | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 cross/cross-mips64el-unknown-linux-gnu-gcc/PKGBUILD (limited to 'cross/cross-mips64el-unknown-linux-gnu-gcc/PKGBUILD') diff --git a/cross/cross-mips64el-unknown-linux-gnu-gcc/PKGBUILD b/cross/cross-mips64el-unknown-linux-gnu-gcc/PKGBUILD new file mode 100644 index 000000000..7dcc91e95 --- /dev/null +++ b/cross/cross-mips64el-unknown-linux-gnu-gcc/PKGBUILD @@ -0,0 +1,60 @@ +# Contributor: Vojtech Horky +_pkgname=gcc +_target="mips64el-unknown-linux-gnu" +_sysroot="/usr/lib/cross-${_target}" +export PATH=${_sysroot}/bin:/usr/bin/cross/${_target}:$PATH + +pkgname=cross-${_target}-gcc +pkgver=4.6.2 +pkgrel=1 +pkgdesc="The GNU Compiler Collection for the MIPS/Loongson2f architecture" +url="http://www.gnu.org/software/binutils/" +arch=('i686' 'x86_64') +license=('GPL') +depends=('libmpc' 'sh' "cross-${_target}-binutils" "cross-${_target}-glibc" 'cloog' 'ppl') +options=('!ccache' '!distcc' '!emptydirs' '!libtool' '!strip') +source=("ftp://ftp.gnu.org/gnu/gcc/gcc-${pkgver}/${_pkgname}-core-${pkgver}.tar.bz2") +md5sums=('780f614ab18c7a9066dec6387d7490b2') + +export PATH=${_sysroot}/bin:/usr/bin/cross/${_target}:$PATH + +build() { + cd ${srcdir}/${_pkgname}-${pkgver} + + ./configure \ + "--prefix=${_sysroot}" \ + "--bindir=/usr/bin" "--program-prefix=${_target}-" \ + "--with-sysroot=${_sysroot}" \ + "--target=${_target}" "--build=$CHOST" "--host=$CHOST" \ + --enable-shared \ + --with-gnu-as --with-gnu-ld \ + --disable-nls --disable-threads \ + --enable-languages=c,c++,lto,fortran,objc,obj-c++ \ + --disable-multilib --disable-libgcj \ + --enable-cloog-backend=isl \ + --without-headers #--disable-shared + + make all # -gcc "inhibit_libc=true" +} + +package() { + cd ${srcdir}/${_pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install # -gcc + + msg "Removing duplicit files..." + # remove these files as they are already in the system + # (with native gcc) + rm -Rf ${pkgdir}${_sysroot}/{man,info} + # remove conflicting binaries + find ${pkgdir}/usr/bin/ -type f -not -name "${_target}-*" -delete + + msg "Creating out-of-path executables..." + # symlink executables to single directory with no-arch-prefix name + mkdir -p ${pkgdir}/usr/bin/cross/${_target}/; + cd ${pkgdir}/usr/bin/cross/${_target}/; + for bin in ${pkgdir}/usr/bin/${_target}-*; do + bbin=`basename "$bin"`; + ln -s "/usr/bin/${bbin}" `echo "$bbin" | sed "s#^${_target}-##"`; + done +} -- cgit v1.2.3