Skip to content

Commit

Permalink
gmp-xen & gmp-freestanding: require '--with-pic' for newer zarith
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesm committed Sep 27, 2017
1 parent 429c364 commit 3c0bf97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
2 changes: 1 addition & 1 deletion packages/gmp-xen/gmp-xen.6.0.0/files/mirage-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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' \
Expand Down

0 comments on commit 3c0bf97

Please sign in to comment.