From e0d7f56023a0b7af7d913c3c3b9f79598e642bec Mon Sep 17 00:00:00 2001 From: gripped Date: Thu, 10 Oct 2013 18:42:45 +0100 Subject: [PATCH 1/2] Create armv7h-nopic.patch --- core/libtool/armv7h-nopic.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 core/libtool/armv7h-nopic.patch diff --git a/core/libtool/armv7h-nopic.patch b/core/libtool/armv7h-nopic.patch new file mode 100644 index 000000000..713aa24b0 --- /dev/null +++ b/core/libtool/armv7h-nopic.patch @@ -0,0 +1,11 @@ +--- libtool-2.4.2/tests/demo-nopic.test.orig 2013-10-10 10:55:49.686651787 -0500 ++++ libtool-2.4.2/tests/demo-nopic.test 2013-10-10 05:45:45.027421384 -0500 +@@ -26,7 +26,7 @@ + . tests/defs || exit 1 + + case "$host" in +-hppa*|x86_64*|s390*) ++hppa*|x86_64*|s390*|arm*) + func_skip "$host doesn't like non-PIC shared libs" + ;; + *-solaris*|*-sunos*) From 129e121e8f74b544d1775046219a366c709289c9 Mon Sep 17 00:00:00 2001 From: gripped Date: Thu, 10 Oct 2013 18:50:10 +0100 Subject: [PATCH 2/2] Update PKGBUILD Added armv7h-nopic.patch which skips demo-nopic.test if CARCH=armv7h. armv7 does not support nopic shared libs --- core/libtool/PKGBUILD | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/libtool/PKGBUILD b/core/libtool/PKGBUILD index 1c755fe4d..bdc260bab 100644 --- a/core/libtool/PKGBUILD +++ b/core/libtool/PKGBUILD @@ -18,11 +18,14 @@ url="http://www.gnu.org/software/libtool" makedepends=('gcc=4.8.1') license=('GPL') options=('!libtool' '!distcc') -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} + armv7h-nopic.patch) md5sums=('2ec8997e0c07249eb4cbd072417d70fe' - '1e6ba57420c82c663c85e745d11c7eed') + '1e6ba57420c82c663c85e745d11c7eed' + '7ba2180372dc52d4bfb31a9bafead630') build() { + [[ $CARCH == "armv7h" ]] && patch -p0 -i ${srcdir}/armv7h-nopic.patch cd ${srcdir}/${pkgbase}-${pkgver} ./configure --prefix=/usr make @@ -53,3 +56,4 @@ package_libltdl() { install-ltdlincludeHEADERS install-data-local rm -rf ${pkgdir}/usr/share/{aclocal,libtool/config} } +