From: <den...@us...> - 2010-06-10 17:17:39
|
Revision: 193 http://stdair.svn.sourceforge.net/stdair/?rev=193&view=rev Author: denis_arnaud Date: 2010-06-10 17:17:33 +0000 (Thu, 10 Jun 2010) Log Message: ----------- [Config] Added the MPI C library in the linker flags (MPIGEN_LIBS+=-lmpi). Modified Paths: -------------- trunk/stdair/config/mpich2.m4 trunk/stdair/config/openmpi.m4 Modified: trunk/stdair/config/mpich2.m4 =================================================================== --- trunk/stdair/config/mpich2.m4 2010-06-08 09:17:25 UTC (rev 192) +++ trunk/stdair/config/mpich2.m4 2010-06-10 17:17:33 UTC (rev 193) @@ -200,7 +200,7 @@ # Derive the flags for compilation and linking # MPICH2_CFLAGS="-I${MPICH2_incdir} ${MODEFLAG}" - MPICH2_LIBS="-L${MPICH2_libdir} -lmpichcxx" + MPICH2_LIBS="-L${MPICH2_libdir} -lmpichcxx -lmpich" # # Make the changes permanent @@ -217,7 +217,7 @@ save_LIBS="$LIBS" if test -z "$MPICH2_LIBS" then - MPICH2_LIBS="-L/usr/lib${MODE}/mpich2 -lmpich" + MPICH2_LIBS="-L/usr/lib${MODE}/mpich2 -lmpichcxx -lmpich" fi LIBS="$LIBS $MPICH2_LIBS" AC_CHECK_LIB($MPICH2_LIBC, MPID_Comm_direct, Modified: trunk/stdair/config/openmpi.m4 =================================================================== --- trunk/stdair/config/openmpi.m4 2010-06-08 09:17:25 UTC (rev 192) +++ trunk/stdair/config/openmpi.m4 2010-06-10 17:17:33 UTC (rev 193) @@ -199,7 +199,7 @@ # Derive the flags for compilation and linking # OPENMPI_CFLAGS="-I${OPENMPI_incdir} -I${OPENMPI_incdir}/openmpi -I${OPENMPI_incdir}/${MODE} ${MODEFLAG}" - OPENMPI_LIBS="-L${OPENMPI_libdir} -lmpi_cxx" + OPENMPI_LIBS="-L${OPENMPI_libdir} -lmpi_cxx -lmpi" # # Make the changes permanent @@ -216,7 +216,7 @@ save_LIBS="$LIBS" if test -z "$OPENMPI_LIBS" then - OPENMPI_LIBS="-L/usr/lib${MODE}/openmpi/${MPIDIR} -lmpi_cxx" + OPENMPI_LIBS="-L/usr/lib${MODE}/openmpi/${MPIDIR} -lmpi_cxx -lmpi" fi LIBS="$LIBS $OPENMPI_LIBS" AC_CHECK_LIB($OPENMPI_LIB, ompi_mpi_char, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |