From 3c0bf972104d88965c05d105ec54681751de28e6 Mon Sep 17 00:00:00 2001 From: Hannes Mehnert Date: Wed, 27 Sep 2017 17:23:16 +0100 Subject: [PATCH] gmp-xen & gmp-freestanding: require '--with-pic' for newer zarith --- .../gmp-freestanding.6.0.0/files/mirage-build.sh | 2 +- packages/gmp-xen/gmp-xen.6.0.0/files/mirage-build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/gmp-freestanding/gmp-freestanding.6.0.0/files/mirage-build.sh b/packages/gmp-freestanding/gmp-freestanding.6.0.0/files/mirage-build.sh index fa768bd49ce5..026550556651 100644 --- a/packages/gmp-freestanding/gmp-freestanding.6.0.0/files/mirage-build.sh +++ b/packages/gmp-freestanding/gmp-freestanding.6.0.0/files/mirage-build.sh @@ -29,7 +29,7 @@ check_deps || exit 1 ac_cv_func_obstack_vprintf=no \ ac_cv_func_localeconv=no \ ./configure \ - --host=x86_64-unknown-none --enable-fat --disable-shared \ + --host=x86_64-unknown-none --enable-fat --disable-shared --with-pic \ CC=cc "CPPFLAGS=$(pkg-config --cflags ${PKG_CONFIG_DEPS})" make SUBDIRS="mpn mpz mpq mpf" \ diff --git a/packages/gmp-xen/gmp-xen.6.0.0/files/mirage-build.sh b/packages/gmp-xen/gmp-xen.6.0.0/files/mirage-build.sh index f22804195058..12471bf20785 100644 --- a/packages/gmp-xen/gmp-xen.6.0.0/files/mirage-build.sh +++ b/packages/gmp-xen/gmp-xen.6.0.0/files/mirage-build.sh @@ -21,7 +21,7 @@ CPPFLAGS="$CPPFLAGS `pkg-config $PKG_CONFIG_DEPS --cflags` -O2 -pedantic -fomit- # Use -Werror=missing-prototypes because we're not running the tests due to cross-compiling. HOST="`uname -m`-unknown-none" BUILD=`./config.guess` -./configure --host="$HOST" --build="$BUILD" --enable-fat CC=gcc --prefix="$PREFIX" --disable-shared CPPFLAGS="$CPPFLAGS" +./configure --host="$HOST" --build="$BUILD" --enable-fat CC=gcc --prefix="$PREFIX" --disable-shared CPPFLAGS="$CPPFLAGS" --with-pic # Because we're cross-compiling, configurate can't tell whether a function # actually exists and just assumes they all do. For localeconv, this is wrong. sed -e '/HAVE_LOCALECONV/d' \