summaryrefslogtreecommitdiffstats
path: root/main/gmp5
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-25 07:27:53 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-09-25 07:30:28 +0000
commit149e2067dc86d30017888c7d1ec76f8bac8eb2a7 (patch)
tree70d92498265ba4d8de6a03012e872f05bd3bc4dd /main/gmp5
parentc849949f6eca72c8bc27fc5cd942ac397a936cf2 (diff)
downloadaports-149e2067dc86d30017888c7d1ec76f8bac8eb2a7.tar.bz2
aports-149e2067dc86d30017888c7d1ec76f8bac8eb2a7.tar.xz
main/gmp5: fix crosscompling properly
hack libtool to properly set -L and rpath when sysroot building.
Diffstat (limited to 'main/gmp5')
-rw-r--r--main/gmp5/APKBUILD4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/gmp5/APKBUILD b/main/gmp5/APKBUILD
index cf624951d..9893ada6f 100644
--- a/main/gmp5/APKBUILD
+++ b/main/gmp5/APKBUILD
@@ -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
}