summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/sfcio/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/sfcio/package.py b/var/spack/repos/builtin/packages/sfcio/package.py
index 0b0e3d67ad..30ab34259b 100644
--- a/var/spack/repos/builtin/packages/sfcio/package.py
+++ b/var/spack/repos/builtin/packages/sfcio/package.py
@@ -25,3 +25,9 @@ class Sfcio(CMakePackage):
for suffix in ('4', ''):
env.set('SFCIO_LIB' + suffix, lib[0])
env.set('SFCIO_INC' + suffix, join_path(self.prefix, 'include'))
+
+ def flag_handler(self, name, flags):
+ if self.spec.satisfies('%fj'):
+ if name == 'fflags':
+ flags.append('-Free')
+ return (None, None, flags)