diff options
-rw-r--r-- | var/spack/repos/builtin/packages/xabclib/package.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/xabclib/package.py b/var/spack/repos/builtin/packages/xabclib/package.py index 3a851b21af..80f691d31b 100644 --- a/var/spack/repos/builtin/packages/xabclib/package.py +++ b/var/spack/repos/builtin/packages/xabclib/package.py @@ -21,6 +21,8 @@ class Xabclib(MakefilePackage): fc = [spack_fc, '-O3', self.compiler.openmp_flag] if spec.satisfies('%gcc'): fc.extend(['-ffixed-form', '-cpp']) + elif spec.satisfies('%fj'): + fc.extend(['-Fixed', '-Cpp']) filter_file( '^rm libOpenAT.a$', 'rm -f libOpenAT.a', @@ -44,6 +46,8 @@ class Xabclib(MakefilePackage): 'LD += .*$', 'LD = {0}'.format(' '.join(fc)) ) + if spec.satisfies('%fj') and 'samples_c' in makefile: + m.filter('$(LD)', '$(LD) -mlcmain=main', string=True) def build(self, spec, prefix): sh = which('sh') |