diff options
author | Henri Menke <henri@henrimenke.de> | 2024-08-13 00:23:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-12 16:23:36 -0600 |
commit | 6f61e382da27e85295c8718769942b2764e60d70 (patch) | |
tree | 5933ce41467b6af6ede47e40d99527ae28d33f02 /var | |
parent | 63e680e4f9fed6385ddf7867ac2c6d0c2112be17 (diff) | |
download | spack-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.py | 7 |
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 |