summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTomoki, Karatsu <49965247+t-karatsu@users.noreply.github.com>2020-05-12 16:40:11 +0900
committerGitHub <noreply@github.com>2020-05-12 09:40:11 +0200
commita59b92d3035401f061f1740a9ea88b7d5a1978d6 (patch)
tree343aa49d7f07149794815ffa0bb125564c005a39 /var
parentb526a902207c9e089269f51b68621c18312db8d0 (diff)
downloadspack-a59b92d3035401f061f1740a9ea88b7d5a1978d6.tar.gz
spack-a59b92d3035401f061f1740a9ea88b7d5a1978d6.tar.bz2
spack-a59b92d3035401f061f1740a9ea88b7d5a1978d6.tar.xz
spack-a59b92d3035401f061f1740a9ea88b7d5a1978d6.zip
xabclib: added support for Fujitsu compiler. (#16596)
- Added Fujitsu compiler options that have the same functions as the options added for GCC - Added option to link C objects
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/xabclib/package.py4
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')