mpi_link
authorSamuel Thibault <sthibault@debian.org>
Sat, 23 Feb 2019 10:03:38 +0000 (11:03 +0100)
committerSamuel Thibault <sthibault@debian.org>
Sat, 23 Feb 2019 10:03:38 +0000 (11:03 +0100)
disable using mpicc --showme:link link flags: they bring unnecessary rpath.

disable using mpicc --showme:link link flags: they bring unnecessary rpath.

Gbp-Pq: Name mpi_link

configure.ac

index 0dcf356c6d57b3d98c2abae135310ae4d2ade9bd..3de5ea054f35d9b970ebf54beed26b5d0141bf18 100644 (file)
@@ -1991,12 +1991,6 @@ AC_MSG_RESULT($mpicc_path)
 AC_SUBST(MPICC, $mpicc_path)
 if test x$use_mpi = xyes; then
        cc_or_mpicc=$mpicc_path
-        # For some reason, libtool uses gcc instead of mpicc when linking
-        # libstarpumpi.
-        # On Darwin (and maybe other systems ?) the linker will fail (undefined
-        # references to MPI_*). We manually add the required flags to fix this
-        # issue.
-        AC_SUBST(MPICC_LDFLAGS, `$mpicc_path --showme:link`)
 else
        cc_or_mpicc=$CC
 fi