Commit 149e2067 authored by Timo Teräs's avatar Timo Teräs

main/gmp5: fix crosscompling properly

hack libtool to properly set -L and rpath when sysroot building.
parent c849949f
......@@ -20,6 +20,7 @@ _builddir="$srcdir"/$_name-$pkgver
prepare() {
cd "$_builddir"
patch -p1 < "$srcdir"/gmp-4.1.4-noexecstack.patch || return 1
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
}
build() {
......@@ -27,7 +28,7 @@ build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--with-sysroot=${CBUILDROOT} \
--with-sysroot=$CBUILDROOT \
--prefix=/usr \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
......@@ -35,7 +36,6 @@ build() {
--enable-cxx \
--with-pic \
|| return 1
make || return 1
}
......
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