summaryrefslogtreecommitdiff
path: root/core/libtool
diff options
context:
space:
mode:
Diffstat (limited to 'core/libtool')
-rw-r--r--core/libtool/PKGBUILD12
-rw-r--r--core/libtool/nopic.patch13
2 files changed, 22 insertions, 3 deletions
diff --git a/core/libtool/PKGBUILD b/core/libtool/PKGBUILD
index 329b016cf..bd90bcffc 100644
--- a/core/libtool/PKGBUILD
+++ b/core/libtool/PKGBUILD
@@ -8,16 +8,22 @@ pkgname=('libtool' 'libltdl')
pkgver=2.4.2
pkgrel=5
pkgdesc="A generic library support script"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/libtool"
license=('GPL')
options=('!libtool')
-source=(ftp://ftp.gnu.org/pub/gnu/libtool/${pkgname}-${pkgver}.tar.xz{,.sig})
+source=(ftp://ftp.gnu.org/pub/gnu/libtool/${pkgname}-${pkgver}.tar.xz{,.sig}
+ nopic.patch)
md5sums=('2ec8997e0c07249eb4cbd072417d70fe'
- '1e6ba57420c82c663c85e745d11c7eed')
+ '1e6ba57420c82c663c85e745d11c7eed'
+ '46443cf0e3e1b4e4891812af73385615')
build() {
cd ${srcdir}/${pkgbase}-${pkgver}
+
+ # fix test failure on mips64el (from Debian)
+ patch -Np1 -i "${srcdir}/nopic.patch"
+
./configure --prefix=/usr
make
}
diff --git a/core/libtool/nopic.patch b/core/libtool/nopic.patch
new file mode 100644
index 000000000..43a712685
--- /dev/null
+++ b/core/libtool/nopic.patch
@@ -0,0 +1,13 @@
+Index: libtool-2.2.6a/tests/demo-nopic.test
+===================================================================
+--- libtool-2.2.6a.orig/tests/demo-nopic.test 2008-11-18 21:11:29.000000000 +0000
++++ libtool-2.2.6a/tests/demo-nopic.test 2008-11-18 21:12:41.000000000 +0000
+@@ -26,7 +26,7 @@
+ . tests/defs || exit 1
+
+ case "$host" in
+-hppa*|x86_64*|s390*)
++hppa*|x86_64*|s390*|mips*|arm*)
+ func_skip "$host doesn't like non-PIC shared libs"
+ ;;
+ *-solaris*|*-sunos*)