Commit bf84fa30 authored by Timo Teräs's avatar Timo Teräs
Browse files

main/gmp: fix cross building

use fixed libtool
parent 910bb03b
......@@ -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() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment