add PIC flag in mpi-serial build (#35524)
This commit is contained in:
parent
73fcda19d2
commit
fa3ced5242
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ class MpiSerial(AutotoolsPackage):
|
|||
provides("mpi")
|
||||
|
||||
def configure_args(self):
|
||||
args = []
|
||||
args = ["CFLAGS={0}".format(self.compiler.cc_pic_flag)]
|
||||
realsize = int(self.spec.variants["fort-real-size"].value)
|
||||
if realsize != 4:
|
||||
args.extend(["--enable-fort-real={0}".format(realsize)])
|
||||
|
|
Loading…
Reference in a new issue