FIX: opal@2024.1.0%gcc@12.3 build

This commit is contained in:
svcusr-spack (Resp. Germann Elsa Sylvia)
2024-07-19 18:10:18 +02:00
parent 395260f1ec
commit 61ad0d8fc4
4 changed files with 14 additions and 11 deletions

View File

@ -6,7 +6,7 @@ diff -u mithra-2.0.orig/makefile mithra-2.0/makefile
SHELL = /bin/sh
COMP = mpic++
+CFLAGS+=-fPIC
+CFLAGS+=-fPIC -fPIE
CFLAGS+=-std=c++11
CFLAGS+=-O3

View File

@ -18,6 +18,8 @@ class Mithra(MakefilePackage):
version("2.0", sha256="66f27ba6ca2c1ab05abb76338d00e661a6fe96b95283b85409c37625b4758deb")
patch("mithra-fPIC.patch")
variant("mpi", default=True, description="Enable MPI support")
depends_on("mpi", when="+mpi")