summaryrefslogtreecommitdiff
path: root/core/glibc/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'core/glibc/PKGBUILD')
-rw-r--r--core/glibc/PKGBUILD18
1 files changed, 12 insertions, 6 deletions
diff --git a/core/glibc/PKGBUILD b/core/glibc/PKGBUILD
index e89e1aedc..357f0ce46 100644
--- a/core/glibc/PKGBUILD
+++ b/core/glibc/PKGBUILD
@@ -8,7 +8,7 @@ pkgname=glibc
pkgver=2.17
pkgrel=5
pkgdesc="GNU C Library"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/libc"
license=('GPL' 'LGPL')
groups=('base')
@@ -51,13 +51,16 @@ build() {
patch -p1 -i ${srcdir}/glibc-2.17-regexp-matcher-overrun.patch
cd ${srcdir}
- mkdir glibc-build
+ mkdir -p glibc-build
cd glibc-build
if [[ ${CARCH} = "i686" ]]; then
# Hack to fix NPTL issues with Xen, only required on 32bit platforms
# TODO: make separate glibc-xen package for i686
export CFLAGS="${CFLAGS} -mno-tls-direct-seg-refs"
+ elif [[ ${CARCH} = "mips64el" ]]; then
+ # mips64el is only supported in ports.
+ extra_addons=",ports"
fi
echo "slibdir=/usr/lib" >> configparms
@@ -67,15 +70,15 @@ build() {
CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/}
${srcdir}/${pkgname}-${pkgver}/configure --prefix=/usr \
+ --host=${CHOST} --build=${CHOST} \
--libdir=/usr/lib --libexecdir=/usr/lib \
--with-headers=/usr/include \
- --with-bugurl=https://bugs.archlinux.org/ \
- --enable-add-ons=nptl,libidn \
+ --with-bugurl=https://labs.parabola.nu/ \
+ --enable-add-ons=nptl,libidn$extra_addons \
--enable-obsolete-rpc \
--enable-kernel=2.6.32 \
--enable-bind-now --disable-profile \
- --enable-stackguard-randomization \
- --enable-multi-arch
+ --enable-stackguard-randomization
# build libraries with hardening disabled
echo "build-programs=no" >> configparms
@@ -92,11 +95,14 @@ build() {
}
check() {
+ # Known to fail on mips64el.
+ if [ "$CARCH" != "mips64el" ]; then
# bug to file - the linker commands need to be reordered
LDFLAGS=${LDFLAGS/--as-needed,/}
cd ${srcdir}/glibc-build
make check
+ fi
}
package() {