From e343418b1bf4fe9dece46e5fd6dcb3804985ad86 Mon Sep 17 00:00:00 2001 From: "Erik M. Bray" Date: Wed, 20 Feb 2019 15:23:33 +0000 Subject: [PATCH] iml in particular is very picky about being given an absolute path to the gmp.h for the version of GMP you want to use when building it when passing --with-gmp-include it also requires a value for --with-gmp-lib; for the vast majority of cases just replacing 'include' with 'lib' in the include path should suffice; regardless it is less picky about this, especially when using the system GMP (in which case it will be used naturally by the linker via the standard library search path) --- build/pkgs/iml/spkg-install | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build/pkgs/iml/spkg-install b/build/pkgs/iml/spkg-install index 6a4ddb80d2f..8764fd17cf8 100644 --- a/build/pkgs/iml/spkg-install +++ b/build/pkgs/iml/spkg-install @@ -7,8 +7,15 @@ else export CFLAGS="-O3 -g $CFLAGS" fi +# When using GMP from a standard system location it shouldn't really +# matter what we put here, but iml's configure script requires we +# provide *something*, and this should be reasonable in most cases +SAGE_GMP_LIB="`echo "$SAGE_GMP_INCLUDE" | sed 's|/include|/lib|'`" + sdh_configure --enable-shared \ --with-default="$SAGE_LOCAL" \ + --with-gmp-include="$SAGE_GMP_INCLUDE" \ + --with-gmp-lib="$SAGE_GMP_LIB" \ --with-cblas="$(pkg-config --libs cblas)" \ --with-cblas-include="$(pkg-config --cflags cblas)" \ "$IML_CONFIGURE"