summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
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