summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorHenri Menke <henri@henrimenke.de>2024-08-13 00:23:36 +0200
committerGitHub <noreply@github.com>2024-08-12 16:23:36 -0600
commit6f61e382da27e85295c8718769942b2764e60d70 (patch)
tree5933ce41467b6af6ede47e40d99527ae28d33f02 /var
parent63e680e4f9fed6385ddf7867ac2c6d0c2112be17 (diff)
downloadspack-6f61e382da27e85295c8718769942b2764e60d70.tar.gz
spack-6f61e382da27e85295c8718769942b2764e60d70.tar.bz2
spack-6f61e382da27e85295c8718769942b2764e60d70.tar.xz
spack-6f61e382da27e85295c8718769942b2764e60d70.zip
etsf-io: use pic flag when compiling (#45646)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/etsf-io/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/etsf-io/package.py b/var/spack/repos/builtin/packages/etsf-io/package.py
index 6cd2476ec3..91df214f7d 100644
--- a/var/spack/repos/builtin/packages/etsf-io/package.py
+++ b/var/spack/repos/builtin/packages/etsf-io/package.py
@@ -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