From 030214c7084cf5aaf4372147f48343b9915ca743 Mon Sep 17 00:00:00 2001 From: rpm-build Date: Wed, 1 Mar 2023 19:24:41 -0700 Subject: [PATCH 3/3] Drop build flags, e.g. -specs... and -lto from mpi wrappers (mpicc and mpicxx) For discussion see: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/7TFWEKTDWBYBHEGMIWBVI3AVGORZGNBS/ --- src/env/mpicc.bash.in | 6 +++--- src/env/mpicc.sh.in | 6 +++--- src/env/mpicxx.bash.in | 6 +++--- src/env/mpicxx.sh.in | 6 +++--- src/env/mpifort.bash.in | 4 ++-- src/env/mpifort.sh.in | 4 ++-- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/env/mpicc.bash.in b/src/env/mpicc.bash.in index 3fc695f..f31e436 100644 --- a/src/env/mpicc.bash.in +++ b/src/env/mpicc.bash.in @@ -247,9 +247,9 @@ if [ -n "$profConf" ] ; then fi fi -final_cflags="@MPICH_MPICC_CFLAGS@ @WRAPPER_CFLAGS@" -final_cppflags="@MPICH_MPICC_CPPFLAGS@ @WRAPPER_CPPFLAGS@" -final_ldflags="@MPICH_MPICC_LDFLAGS@ @WRAPPER_LDFLAGS@" +final_cflags="@MPICH_MPICC_CFLAGS@" +final_cppflags="@MPICH_MPICC_CPPFLAGS@" +final_ldflags="@MPICH_MPICC_LDFLAGS@" final_libs="@MPICH_MPICC_LIBS@" if test "@INTERLIB_DEPS@" = "no" -o "${interlib_deps}" = "no" ; then final_ldflags="${final_ldflags} @LDFLAGS@" diff --git a/src/env/mpicc.sh.in b/src/env/mpicc.sh.in index 99a8c90..89ef111 100644 --- a/src/env/mpicc.sh.in +++ b/src/env/mpicc.sh.in @@ -253,9 +253,9 @@ if [ -n "$profConf" ] ; then fi fi -final_cflags="@MPICH_MPICC_CFLAGS@ @WRAPPER_CFLAGS@" -final_cppflags="@MPICH_MPICC_CPPFLAGS@ @WRAPPER_CPPFLAGS@" -final_ldflags="@MPICH_MPICC_LDFLAGS@ @WRAPPER_LDFLAGS@" +final_cflags="@MPICH_MPICC_CFLAGS@" +final_cppflags="@MPICH_MPICC_CPPFLAGS@" +final_ldflags="@MPICH_MPICC_LDFLAGS@" final_libs="@MPICH_MPICC_LIBS@" if test "@INTERLIB_DEPS@" = "no" -o "${interlib_deps}" = "no" ; then final_ldflags="${final_ldflags} @LDFLAGS@" diff --git a/src/env/mpicxx.bash.in b/src/env/mpicxx.bash.in index 29566ba..f80882e 100644 --- a/src/env/mpicxx.bash.in +++ b/src/env/mpicxx.bash.in @@ -253,9 +253,9 @@ if [ -n "$profConf" ] ; then fi fi -final_cxxflags="@MPICH_MPICXX_CXXFLAGS@ @WRAPPER_CXXFLAGS@" -final_cppflags="@MPICH_MPICXX_CPPFLAGS@ @WRAPPER_CPPFLAGS@" -final_ldflags="@MPICH_MPICXX_LDFLAGS@ @WRAPPER_LDFLAGS@" +final_cxxflags="@MPICH_MPICXX_CXXFLAGS@" +final_cppflags="@MPICH_MPICXX_CPPFLAGS@" +final_ldflags="@MPICH_MPICXX_LDFLAGS@" final_libs="@MPICH_MPICXX_LIBS@" if test "@INTERLIB_DEPS@" = "no" -o "${interlib_deps}" = "no" ; then final_ldflags="${final_ldflags} @LDFLAGS@" diff --git a/src/env/mpicxx.sh.in b/src/env/mpicxx.sh.in index 0b830fe..32dab65 100644 --- a/src/env/mpicxx.sh.in +++ b/src/env/mpicxx.sh.in @@ -259,9 +259,9 @@ if [ -n "$profConf" ] ; then fi fi -final_cxxflags="@MPICH_MPICXX_CXXFLAGS@ @WRAPPER_CXXFLAGS@" -final_cppflags="@MPICH_MPICXX_CPPFLAGS@ @WRAPPER_CPPFLAGS@" -final_ldflags="@MPICH_MPICXX_LDFLAGS@ @WRAPPER_LDFLAGS@" +final_cxxflags="@MPICH_MPICXX_CXXFLAGS@" +final_cppflags="@MPICH_MPICXX_CPPFLAGS@" +final_ldflags="@MPICH_MPICXX_LDFLAGS@" final_libs="@MPICH_MPICXX_LIBS@" if test "@INTERLIB_DEPS@" = "no" -o "${interlib_deps}" = "no" ; then final_ldflags="${final_ldflags} @LDFLAGS@" diff --git a/src/env/mpifort.bash.in b/src/env/mpifort.bash.in index 5312aea..2322b4f 100644 --- a/src/env/mpifort.bash.in +++ b/src/env/mpifort.bash.in @@ -335,8 +335,8 @@ elif [ -n "$FCMODINC" ] ; then FCMODDIRS="${FCMODINC}$modincdir" fi -final_fcflags="@MPICH_MPIFORT_FCFLAGS@ @WRAPPER_FCFLAGS@" -final_ldflags="@MPICH_MPIFORT_LDFLAGS@ @WRAPPER_LDFLAGS@" +final_fcflags="@MPICH_MPIFORT_FCFLAGS@" +final_ldflags="@MPICH_MPIFORT_LDFLAGS@" final_libs="@MPICH_MPIFORT_LIBS@" if test "@INTERLIB_DEPS@" = "no" -o "${interlib_deps}" = "no" ; then final_ldflags="${final_ldflags} @LDFLAGS@" diff --git a/src/env/mpifort.sh.in b/src/env/mpifort.sh.in index 902b0f7..665fe85 100644 --- a/src/env/mpifort.sh.in +++ b/src/env/mpifort.sh.in @@ -352,8 +352,8 @@ elif [ -n "$FCMODINC" ] ; then FCMODDIRS="${FCMODINC}$modincdir" fi -final_fcflags="@MPICH_MPIFORT_FCFLAGS@ @WRAPPER_FCFLAGS@" -final_ldflags="@MPICH_MPIFORT_LDFLAGS@ @WRAPPER_LDFLAGS@" +final_fcflags="@MPICH_MPIFORT_FCFLAGS@" +final_ldflags="@MPICH_MPIFORT_LDFLAGS@" final_libs="@MPICH_MPIFORT_LIBS@" if test "@INTERLIB_DEPS@" = "no" -o "${interlib_deps}" = "no" ; then final_ldflags="${final_ldflags} @LDFLAGS@" -- 2.39.2