etsf-io: use pic flag when compiling (#45646)

This commit is contained in:
Henri Menke 2024-08-13 00:23:36 +02:00 committed by GitHub
parent 63e680e4f9
commit 6f61e382da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,6 +32,13 @@ class EtsfIo(Package):
patch("tests_module.patch")
patch("tests_init.patch")
def flag_handler(self, name, flags):
if name == "fflags":
flags.append(self.compiler.f77_pic_flag)
elif name == "fcflags":
flags.append(self.compiler.fc_pic_flag)
return flags, None, None
def install(self, spec, prefix):
options = ["--prefix=%s" % prefix]
oapp = options.append