summaryrefslogtreecommitdiff
path: root/cross/cross-mips64el-unknown-linux-gnu-gcc-core/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'cross/cross-mips64el-unknown-linux-gnu-gcc-core/PKGBUILD')
-rw-r--r--cross/cross-mips64el-unknown-linux-gnu-gcc-core/PKGBUILD19
1 files changed, 8 insertions, 11 deletions
diff --git a/cross/cross-mips64el-unknown-linux-gnu-gcc-core/PKGBUILD b/cross/cross-mips64el-unknown-linux-gnu-gcc-core/PKGBUILD
index 2a9f13e25..da49a903f 100644
--- a/cross/cross-mips64el-unknown-linux-gnu-gcc-core/PKGBUILD
+++ b/cross/cross-mips64el-unknown-linux-gnu-gcc-core/PKGBUILD
@@ -4,26 +4,24 @@
# Change the following variables to match your target
_pkgname=gcc
_target="mips64el-unknown-linux-gnu"
-_sysroot="/usr/lib"
+_sysroot="/usr/${_target}"
_ARCH=mips
unset LDFLAGS CFLAGS CXXFLAGS
pkgname=cross-${_target}-gcc-core
pkgver=4.6.2
-pkgrel=5
+pkgrel=8
pkgdesc="The GNU Compiler Collection for the MIPS/Loongson2f architecture (static version)"
url="http://www.gnu.org/software/binutils/"
arch=('i686' 'x86_64')
license=('GPL')
depends=('libmpc' 'sh' "cross-${_target}-binutils" 'cloog' 'ppl')
options=('!ccache' '!distcc' '!emptydirs' '!libtool' '!strip')
-source=("ftp://ftp.gnu.org/gnu/gcc/gcc-${pkgver}/${_pkgname}-core-${pkgver}.tar.bz2")
-md5sums=('780f614ab18c7a9066dec6387d7490b2')
+source=("ftp://ftp.gnu.org/gnu/gcc/gcc-${pkgver}/${_pkgname}-${pkgver}.tar.bz2")
+md5sums=('028115c4fbfb6cfd75d6369f4a90d87e')
build() {
- export PATH=${_sysroot}/bin:$PATH
-
cd ${srcdir}
mkdir gcc-build && cd gcc-build
@@ -35,7 +33,6 @@ build() {
--host=${CHOST} \
--target=${_target} \
--prefix=/usr \
- --libexecdir=/usr/lib \
--with-local-prefix=${_sysroot} \
--disable-multilib \
--disable-libmudflap \
@@ -45,7 +42,6 @@ build() {
--disable-shared \
--with-arch=loongson2f \
--with-abi=n32 \
- --with-tune=loongson2f \
--enable-__cxa_atexit \
--with-gmp \
--with-mpfr \
@@ -58,14 +54,15 @@ build() {
--disable-libgomp \
--disable-libmudflap \
--disable-nls \
- --enable-languages=c
+ --enable-languages=c \
+ --with-libs \
+ --with-headers
make ${MAKEFLAGS} all-gcc
}
package() {
- #cd ${srcdir}/${_pkgname}-build
- cd ${srcdir}
+ cd ${srcdir}/${_pkgname}-build
make ${MAKEFLAGS} DESTDIR=${pkgdir} install-gcc