diff options
Diffstat (limited to 'core/glibc')
-rw-r--r-- | core/glibc/.arch | 1 | ||||
-rw-r--r-- | core/glibc/PKGBUILD | 19 |
2 files changed, 18 insertions, 2 deletions
diff --git a/core/glibc/.arch b/core/glibc/.arch new file mode 100644 index 000000000..9fe4d07f7 --- /dev/null +++ b/core/glibc/.arch @@ -0,0 +1 @@ +mips64el=false diff --git a/core/glibc/PKGBUILD b/core/glibc/PKGBUILD index 761a6684d..730633e9c 100644 --- a/core/glibc/PKGBUILD +++ b/core/glibc/PKGBUILD @@ -9,7 +9,7 @@ pkgver=2.15 pkgrel=3 _glibcdate=20111227 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') @@ -21,6 +21,7 @@ backup=(etc/gai.conf options=('!strip') install=glibc.install source=(ftp://ftp.archlinux.org/other/glibc/${pkgname}-${pkgver}_${_glibcdate}.tar.xz + http://repo.parabolagnulinux.org/other/glibc-ports-${_glibcportsver}_${_glibcportsdate}.tar.xz glibc-2.10-dont-build-timezone.patch glibc-2.10-bz4781.patch glibc-__i686.patch @@ -58,6 +59,15 @@ mksource() { git checkout -b glibc-2.15-arch origin/master popd tar -cvJf glibc-${pkgver}_${_glibcdate}.tar.xz glibc/* + mksource-ports +} + +mksource-ports() { + git clone git://sourceware.org/git/glibc-ports.git + pushd glibc-ports + git checkout -b glibc-2.14-arch origin/release/2.14/master + popd + tar -cvJf glibc-ports-${pkgver}_${_glibcdate}.tar.xz glibc-ports/* } build() { @@ -106,6 +116,8 @@ build() { # obviously not a real fix... patch -Np1 -i ${srcdir}/glibc-2.15-math64crash.patch + ln -s ../glibc-ports ports + install -dm755 ${pkgdir}/etc touch ${pkgdir}/etc/ld.so.conf @@ -116,6 +128,9 @@ build() { if [[ ${CARCH} = "i686" ]]; then # Hack to fix NPTL issues with Xen, only required on 32bit platforms export CFLAGS="${CFLAGS} -mno-tls-direct-seg-refs" + elif [[ ${CARCH} = "mips64el" ]]; then + # mips64el is only supported out of tree. + extra_addons=",ports" fi echo "slibdir=/lib" >> configparms @@ -127,7 +142,7 @@ build() { ${srcdir}/glibc/configure --prefix=/usr \ --libdir=/usr/lib --libexecdir=/usr/lib \ --with-headers=/usr/include \ - --enable-add-ons=nptl,libidn \ + --enable-add-ons=nptl,libidn$extra_addons \ --enable-kernel=2.6.27 \ --with-tls --with-__thread \ --enable-bind-now --without-gd \ |