summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/gmp5/APKBUILD8
1 files changed, 6 insertions, 2 deletions
diff --git a/main/gmp5/APKBUILD b/main/gmp5/APKBUILD
index 7e7052cb2..f57a04f65 100644
--- a/main/gmp5/APKBUILD
+++ b/main/gmp5/APKBUILD
@@ -16,17 +16,21 @@ source="ftp://ftp.gnu.org/gnu/gmp/gmp-$pkgver.tar.bz2
"
_builddir="$srcdir"/$_name-$pkgver
-build() {
+
+prepare() {
cd "$_builddir"
patch -p1 < "$srcdir"/gmp-4.1.4-noexecstack.patch || return 1
+}
+build() {
+ cd "$_builddir"
./configure --prefix=/usr \
--build=${CBUILD} \
--host=${CHOST} \
+ --with-sysroot=${CBUILDROOT} \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--localstatedir=/var/state/gmp \
- --enable-mpbsd \
--enable-cxx \
--with-pic \
|| return 1