env: Use LDFLAGS without MPICHLIB_LDFLAGS in wrapper scripts

MPICHLIB_LDFLAGS should only be used to build the MPICH library.
Esse commit está contido em:
Ken Raffenetti
2024-03-06 16:06:13 -06:00
commit de Ken Raffenetti
commit 4371df303e
7 arquivos alterados com 10 adições e 6 exclusões
+4
Ver Arquivo
@@ -311,6 +311,10 @@ CPPFLAGS="$CPPFLAGS $MPICHLIB_CPPFLAGS"
CXXFLAGS="$CXXFLAGS $MPICHLIB_CXXFLAGS"
FFLAGS="$FFLAGS $MPICHLIB_FFLAGS"
FCFLAGS="$FCFLAGS $MPICHLIB_FCFLAGS"
# Save LDFLAGS before merging with MPICHLIB_LDFLAGS. The wrapper scripts
# may need this in case interlibrary dependencies are not supported.
SAVE_LDFLAGS=$LDFLAGS
AC_SUBST(SAVE_LDFLAGS)
LDFLAGS="$LDFLAGS $MPICHLIB_LDFLAGS"
LIBS="$LIBS $MPICHLIB_LIBS"
+1 -1
Ver Arquivo
@@ -262,7 +262,7 @@ final_cppflags="@MPICH_MPICC_CPPFLAGS@ @WRAPPER_CPPFLAGS@"
final_ldflags="@MPICH_MPICC_LDFLAGS@ @WRAPPER_LDFLAGS@"
final_libs="@MPICH_MPICC_LIBS@"
if test "@INTERLIB_DEPS@" = "no" -o "${interlib_deps}" = "no" ; then
final_ldflags="${final_ldflags} @LDFLAGS@"
final_ldflags="${final_ldflags} @SAVE_LDFLAGS@"
final_libs="${final_libs} __LIBS_TO_BE_FILLED_AT_INSTALL_TIME__"
fi
+1 -1
Ver Arquivo
@@ -268,7 +268,7 @@ final_cppflags="@MPICH_MPICC_CPPFLAGS@ @WRAPPER_CPPFLAGS@"
final_ldflags="@MPICH_MPICC_LDFLAGS@ @WRAPPER_LDFLAGS@"
final_libs="@MPICH_MPICC_LIBS@"
if test "@INTERLIB_DEPS@" = "no" -o "${interlib_deps}" = "no" ; then
final_ldflags="${final_ldflags} @LDFLAGS@"
final_ldflags="${final_ldflags} @SAVE_LDFLAGS@"
final_libs="${final_libs} __LIBS_TO_BE_FILLED_AT_INSTALL_TIME__"
fi
+1 -1
Ver Arquivo
@@ -267,7 +267,7 @@ final_cppflags="@MPICH_MPICXX_CPPFLAGS@ @WRAPPER_CPPFLAGS@"
final_ldflags="@MPICH_MPICXX_LDFLAGS@ @WRAPPER_LDFLAGS@"
final_libs="@MPICH_MPICXX_LIBS@"
if test "@INTERLIB_DEPS@" = "no" -o "${interlib_deps}" = "no" ; then
final_ldflags="${final_ldflags} @LDFLAGS@"
final_ldflags="${final_ldflags} @SAVE_LDFLAGS@"
final_libs="${final_libs} __LIBS_TO_BE_FILLED_AT_INSTALL_TIME__"
fi
+1 -1
Ver Arquivo
@@ -273,7 +273,7 @@ final_cppflags="@MPICH_MPICXX_CPPFLAGS@ @WRAPPER_CPPFLAGS@"
final_ldflags="@MPICH_MPICXX_LDFLAGS@ @WRAPPER_LDFLAGS@"
final_libs="@MPICH_MPICXX_LIBS@"
if test "@INTERLIB_DEPS@" = "no" -o "${interlib_deps}" = "no" ; then
final_ldflags="${final_ldflags} @LDFLAGS@"
final_ldflags="${final_ldflags} @SAVE_LDFLAGS@"
final_libs="${final_libs} __LIBS_TO_BE_FILLED_AT_INSTALL_TIME__"
fi
+1 -1
Ver Arquivo
@@ -339,7 +339,7 @@ final_fcflags="@MPICH_MPIFORT_FCFLAGS@ @WRAPPER_FCFLAGS@"
final_ldflags="@MPICH_MPIFORT_LDFLAGS@ @WRAPPER_LDFLAGS@"
final_libs="@MPICH_MPIFORT_LIBS@"
if test "@INTERLIB_DEPS@" = "no" -o "${interlib_deps}" = "no" ; then
final_ldflags="${final_ldflags} @LDFLAGS@"
final_ldflags="${final_ldflags} @SAVE_LDFLAGS@"
final_libs="${final_libs} __LIBS_TO_BE_FILLED_AT_INSTALL_TIME__"
fi
+1 -1
Ver Arquivo
@@ -356,7 +356,7 @@ final_fcflags="@MPICH_MPIFORT_FCFLAGS@ @WRAPPER_FCFLAGS@"
final_ldflags="@MPICH_MPIFORT_LDFLAGS@ @WRAPPER_LDFLAGS@"
final_libs="@MPICH_MPIFORT_LIBS@"
if test "@INTERLIB_DEPS@" = "no" -o "${interlib_deps}" = "no" ; then
final_ldflags="${final_ldflags} @LDFLAGS@"
final_ldflags="${final_ldflags} @SAVE_LDFLAGS@"
final_libs="${final_libs} __LIBS_TO_BE_FILLED_AT_INSTALL_TIME__"
fi