add PIC flag in mpi-serial build (#35524)

This commit is contained in:
Jim Edwards 2023-02-17 05:27:11 -07:00 committed by GitHub
parent 73fcda19d2
commit fa3ced5242
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)])