public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alessandro Barbieri" <lssndrbarbieri@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/scalasca/
Date: Fri, 17 Jun 2022 00:35:50 +0000 (UTC)	[thread overview]
Message-ID: <1655426148.fa0fcf95afedb0025996c25bc1f976acdcc5d8ef.Alessandro-Barbieri@gentoo> (raw)

commit:     fa0fcf95afedb0025996c25bc1f976acdcc5d8ef
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Thu Jun 16 13:51:42 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Fri Jun 17 00:35:48 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fa0fcf95

sys-cluster/scalasca: export more variables

Bug: https://bugs.gentoo.org/852041
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sys-cluster/scalasca/scalasca-2.6.ebuild | 47 ++++++++++++++++++++++++--------
 1 file changed, 36 insertions(+), 11 deletions(-)

diff --git a/sys-cluster/scalasca/scalasca-2.6.ebuild b/sys-cluster/scalasca/scalasca-2.6.ebuild
index 64dd29d61..20b391727 100644
--- a/sys-cluster/scalasca/scalasca-2.6.ebuild
+++ b/sys-cluster/scalasca/scalasca-2.6.ebuild
@@ -36,25 +36,50 @@ src_prepare() {
 }
 
 src_configure() {
-	tc-export CC CXX FC F77 CPP
+	tc-export CC CXX FC F77 CPP AR
 
-	export MPICC=/usr/bin/mpicc
-	export MPICXX=/usr/bin/mpicxx
-	export MPIF77=/usr/bin/mpif77
-	export MPIFC=/usr/bin/mpifc
+	cat > build-config/common/platforms/platform-backend-user-provided <<-EOF || die
+	CC=${CC}
+	CXX=${CXX}
+	FC=${FC}
+	F77=${F77}
+	CPP=${CPP}
+	CXXCPP=${CPP}
+	EOF
 
-	export MPI_CFLAGS="${CFLAGS}"
-	export MPI_CXXFLAGS="${CXXFLAGS}"
-	export MPI_CPPFLAGS="${CPPFLAGS}"
-	export MPI_F77LAGS="${F77FLAGS}"
-	export MPI_FCLAGS="${FCFLAGS}"
-	export MPI_LDFLAGS="${LDFLAGS}"
+	cat > build-config/common/platforms/platform-frontend-user-provided <<-EOF || die
+	CC_FOR_BUILD=${CC}
+	F77_FOR_BUILD=${F77}
+	FC_FOR_BUILD=${FC}
+	CXX_FOR_BUILD=${CXX}
+	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=(
 		--disable-platform-mic
 		--disable-static
 		--enable-shared
 		--with-cubew="${EPREFIX}/usr"
+		--with-custom-compilers
 		--with-libz="${EPREFIX}/usr"
 		--with-otf2="${EPREFIX}/usr"
 		$(use_enable openmp)


             reply	other threads:[~2022-06-17  0:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-17  0:35 Alessandro Barbieri [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-06-14  8:00 [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/scalasca/ Alessandro Barbieri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1655426148.fa0fcf95afedb0025996c25bc1f976acdcc5d8ef.Alessandro-Barbieri@gentoo \
    --to=lssndrbarbieri@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox