From 16ed36eda112916f59dba0bbe8759fef34f88439 Mon Sep 17 00:00:00 2001 From: Michał Masłowski Date: Mon, 28 Jan 2013 17:32:31 +0100 Subject: pacman: build packages for MIPS3 by default (mips64el-specific update). Most packages do not need Loongson 2F-specific instructions while enabling these makes them not run on Loongson 3A. Some packages will need different builds for 2F and 3A, this will be handled in future. Tune for 2F since it's currently the most common target machine. --- libre/pacman/PKGBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libre/pacman/PKGBUILD b/libre/pacman/PKGBUILD index 85ae5cc5f..0cfb73c55 100644 --- a/libre/pacman/PKGBUILD +++ b/libre/pacman/PKGBUILD @@ -5,7 +5,7 @@ pkgname=pacman pkgver=4.0.3 -pkgrel=5 +pkgrel=5.1 # no difference from 5 unless on mips64el pkgdesc="A library-based package manager with dependency support" arch=('i686' 'x86_64' 'mips64el') url="http://www.archlinux.org/pacman/" @@ -77,7 +77,7 @@ package() { install -m644 $srcdir/pacman.conf.mips64el $pkgdir/etc/pacman.conf mycarch="mips64el" mychost="mips64el-unknown-linux-gnu" - myflags="-O2 -march=loongson2f -mabi=n32 -pipe -mplt -Wa,-mfix-loongson2f-nop -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2" + myflags="-O2 -march=mips3 -mtune=loongson2f -mabi=n32 -pipe -mplt -Wa,-mfix-loongson2f-nop -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2" myldflags="-Wl,-O1,--sort-common,--as-needed,-z,relro" ;; esac -- cgit v1.2.3 From 5eaafc2229e6e6370334ba4cbc02c318be34994d Mon Sep 17 00:00:00 2001 From: Michał Masłowski Date: Mon, 28 Jan 2013 18:03:03 +0100 Subject: filesystem: Add mips64el-specific library directories. --- libre/filesystem/PKGBUILD | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libre/filesystem/PKGBUILD b/libre/filesystem/PKGBUILD index 4cdd1481a..eb684f5f7 100644 --- a/libre/filesystem/PKGBUILD +++ b/libre/filesystem/PKGBUILD @@ -85,6 +85,11 @@ package() { ln -s usr/lib ${pkgdir}/lib64 ln -s lib ${pkgdir}/usr/lib64 ) + [[ ${CARCH} = "mips64el" ]] && ( + # For the N32 ABI. + ln -s usr/lib ${pkgdir}/lib32 + ln -s lib ${pkgdir}/usr/lib32 + ) # # install parabola(7) manpage -- cgit v1.2.3