Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
iml in particular is very picky about being given an absolute path to…
Browse files Browse the repository at this point in the history
… 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)
  • Loading branch information
embray authored and dimpase committed Apr 18, 2019
1 parent 43be546 commit e343418
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build/pkgs/iml/spkg-install
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e343418

Please sign in to comment.