From 4e555dd96ad2437419fe0004cfa046d38f5ec53e Mon Sep 17 00:00:00 2001 From: Pietro Incardona Date: Thu, 5 Nov 2015 23:32:52 +0100 Subject: [PATCH] Fixing installation --- configure.ac | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/configure.ac b/configure.ac index 9141db1..0d135da 100755 --- a/configure.ac +++ b/configure.ac @@ -118,6 +118,22 @@ AC_CHECK_LIB(rt, clock_gettime,[DEFAULT_LIB+=" -lrt "],[],[]) AX_BOOST([1.52],[],[]) +### Unfortunately a lot of linux distros install a pretty old MPI in the system wide folder, +### override such MPI with the installed one is extremely difficult and tricky, because we want +### to include "some" system library but exclude mpi. One possibility is to give specifically +### the wanted libmpi.so directly to the linker. But this is not possible because this lib is +### given by mpic++ in the form -L/path/to/mpi -lmpi, the other is completely eliminate every +### -L with a system default library +### + +# eliminate any /usr/lib and and /usr/include from $BOOST_LIB and $BOOST_INCLUDE + +BOOST_LDFLAGS=$(echo "$BOOST_LDFLAGS" | sed -e 's/-L\/usr\/lib//g') +BOOST_CPPFLAGS=$(echo "$BOOST_CPPFLAGS" | sed -e 's/-I\/usr\/include//g') + +AC_SUBST(BOOST_LDFLAGS) +AC_SUBST(BOOST_CPPFLAGS) + ####### Checking for GPU support AX_CUDA -- GitLab