summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/landsfcutil/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/landsfcutil/package.py b/var/spack/repos/builtin/packages/landsfcutil/package.py
index c27ca85a33..9a6a3d1115 100644
--- a/var/spack/repos/builtin/packages/landsfcutil/package.py
+++ b/var/spack/repos/builtin/packages/landsfcutil/package.py
@@ -27,3 +27,9 @@ class Landsfcutil(CMakePackage):
env.set('LANDSFCUTIL_LIB' + suffix, lib[0])
env.set('LANDSFCUTIL_INC' + suffix,
join_path(self.prefix, 'include_' + suffix))
+
+ def flag_handler(self, name, flags):
+ if self.spec.satisfies('%fj'):
+ if name == 'fflags':
+ flags.append('-Free')
+ return (None, None, flags)