sys-cluster/scalasca: export more variables

Bug: https://bugs.gentoo.org/852041
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-06-16 15:51:42 +02:00
parent 7b92060b49
commit fa0fcf95af

View File

@@ -36,25 +36,50 @@ src_prepare() {
} }
src_configure() { src_configure() {
tc-export CC CXX FC F77 CPP tc-export CC CXX FC F77 CPP AR
export MPICC=/usr/bin/mpicc cat > build-config/common/platforms/platform-backend-user-provided <<-EOF || die
export MPICXX=/usr/bin/mpicxx CC=${CC}
export MPIF77=/usr/bin/mpif77 CXX=${CXX}
export MPIFC=/usr/bin/mpifc FC=${FC}
F77=${F77}
CPP=${CPP}
CXXCPP=${CPP}
EOF
export MPI_CFLAGS="${CFLAGS}" cat > build-config/common/platforms/platform-frontend-user-provided <<-EOF || die
export MPI_CXXFLAGS="${CXXFLAGS}" CC_FOR_BUILD=${CC}
export MPI_CPPFLAGS="${CPPFLAGS}" F77_FOR_BUILD=${F77}
export MPI_F77LAGS="${F77FLAGS}" FC_FOR_BUILD=${FC}
export MPI_FCLAGS="${FCFLAGS}" CXX_FOR_BUILD=${CXX}
export MPI_LDFLAGS="${LDFLAGS}" LDFLAGS_FOR_BUILD=${LDFLAGS}
CFLAGS_FOR_BUILD=${CFLAGS}
CXXFLAGS_FOR_BUILD=${CXXFLAGS}
CPPFLAGS_FOR_BUILD=${CPPFLAGS}
FCFLAGS_FOR_BUILD=${FCFLAGS}
FFLAGS_FOR_BUILD=${FFLAGS}
CXXFLAGS_FOR_BUILD_SCORE=${CXXFLAGS}
EOF
cat > build-config/common/platforms/platform-mpi-user-provided <<-EOF || die
MPICC=mpicc
MPICXX=mpicxx
MPIF77=mpif77
MPIFC=mpif90
MPI_CPPFLAGS=${CPPFLAGS}
MPI_CFLAGS=${CFLAGS}
MPI_CXXFLAGS=${CXXFLAGS}
MPI_FFLAGS=${FFLAGS}
MPI_FCFLAGS=${FCFLAGS}
MPI_LDFLAGS=${LDFLAGS}
EOF
local myconf=( local myconf=(
--disable-platform-mic --disable-platform-mic
--disable-static --disable-static
--enable-shared --enable-shared
--with-cubew="${EPREFIX}/usr" --with-cubew="${EPREFIX}/usr"
--with-custom-compilers
--with-libz="${EPREFIX}/usr" --with-libz="${EPREFIX}/usr"
--with-otf2="${EPREFIX}/usr" --with-otf2="${EPREFIX}/usr"
$(use_enable openmp) $(use_enable openmp)