aboutsummaryrefslogtreecommitdiffstats
path: root/main/gmp
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-07-06 13:43:37 +0000
committerTimo Teräs <timo.teras@iki.fi>2016-07-06 13:45:01 +0000
commitbf84fa305713edf5f456ab1338a83f5a368c2fde (patch)
tree57bcbc3bf740d6cfa454c15bc37bd70fbcb84b45 /main/gmp
parent910bb03b8ca2e8db211520de5463f641deff81ea (diff)
downloadaports-bf84fa305713edf5f456ab1338a83f5a368c2fde.tar.bz2
aports-bf84fa305713edf5f456ab1338a83f5a368c2fde.tar.xz
main/gmp: fix cross building
use fixed libtool
Diffstat (limited to 'main/gmp')
-rw-r--r--main/gmp/APKBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/gmp/APKBUILD b/main/gmp/APKBUILD
index d562f9b526..85fea4aa81 100644
--- a/main/gmp/APKBUILD
+++ b/main/gmp/APKBUILD
@@ -6,7 +6,7 @@ pkgdesc="A free library for arbitrary precision arithmetic"
url="http://gmplib.org/"
arch="all"
license="LGPL3"
-makedepends="m4 texinfo"
+makedepends="m4 texinfo libtool"
depends=
subpackages="$pkgname-doc $pkgname-dev libgmpxx"
source="https://gmplib.org/download/gmp/gmp-$pkgver.tar.xz
@@ -16,7 +16,8 @@ _builddir="$srcdir"/gmp-${pkgver%[a-z]}
prepare() {
cd "$_builddir"
- sed -i -e "/# We cannot seem to hardcode it, guess we'll fake it./"'{ n; s/add_dir="-L$libdir"/add_dir="-L$lt_sysroot$libdir"/ }' ltmain.sh || return 1
+ # force update to libtool with fixed cross-build support
+ libtoolize -f || return 1
}
build() {