From a59b92d3035401f061f1740a9ea88b7d5a1978d6 Mon Sep 17 00:00:00 2001 From: "Tomoki, Karatsu" <49965247+t-karatsu@users.noreply.github.com> Date: Tue, 12 May 2020 16:40:11 +0900 Subject: 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 --- var/spack/repos/builtin/packages/xabclib/package.py | 4 ++++ 1 file changed, 4 insertions(+) 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') -- cgit v1.2.3-70-g09d2