Revert "Remove MPICHLIB_LDFLAGS/LIBS"

This reverts commit
4d93cefa8f. pmodels/mpich#6904 has a valid
use-case that we should support. An additional commit will modify the
compile scripts so these flags will not leak out of the build.
Esse commit está contido em:
Ken Raffenetti
2024-03-04 16:15:38 -06:00
commit de Ken Raffenetti
commit 2f4bbe1300
2 arquivos alterados com 10 adições e 4 exclusões
+4 -4
Ver Arquivo
@@ -305,10 +305,10 @@ MPICH library being compiled/linked with these flags and the flags
internally being used in mpicc and friends.
(b) MPICHLIB_CFLAGS, MPICHLIB_CPPFLAGS, MPICHLIB_CXXFLAGS,
MPICHLIB_FFLAGS, and MPICHLIB_FCFLAGS (abbreviated as
MPICHLIB_xFLAGS): Setting these flags would result in the MPICH
library being compiled with these flags. However, these flags will
*not* be used by mpicc and friends.
MPICHLIB_FFLAGS, MPICHLIB_FCFLAGS, MPICHLIB_LDFLAGS and
MPICHLIB_LIBS (abbreviated as MPICHLIB_xFLAGS): Setting these flags
would result in the MPICH library being compiled/linked with these
flags. However, these flags will *not* be used by mpicc and friends.
(c) MPICH_MPICC_CFLAGS, MPICH_MPICC_CPPFLAGS, MPICH_MPICC_LDFLAGS,
MPICH_MPICC_LIBS, and so on for MPICXX, MPIF77 and MPIFORT
+6
Ver Arquivo
@@ -302,11 +302,17 @@ AC_ARG_VAR(MPICHLIB_FFLAGS,
[extra FFLAGS used in building MPICH libraries])
AC_ARG_VAR(MPICHLIB_FCFLAGS,
[extra FCFLAGS used in building MPICH libraries])
AC_ARG_VAR(MPICHLIB_LDFLAGS,
[extra LDFLAGS used in building MPICH libraries])
AC_ARG_VAR(MPICHLIB_LIBS,
[extra LIBS used in building MPICH libraries])
CFLAGS="$CFLAGS $MPICHLIB_CFLAGS"
CPPFLAGS="$CPPFLAGS $MPICHLIB_CPPFLAGS"
CXXFLAGS="$CXXFLAGS $MPICHLIB_CXXFLAGS"
FFLAGS="$FFLAGS $MPICHLIB_FFLAGS"
FCFLAGS="$FCFLAGS $MPICHLIB_FCFLAGS"
LDFLAGS="$LDFLAGS $MPICHLIB_LDFLAGS"
LIBS="$LIBS $MPICHLIB_LIBS"
# Save a copy of precious flags as USER_* before any of these flags
# are being modified by configure tests.