summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorketsubouchi <67359246+ketsubouchi@users.noreply.github.com>2020-07-08 16:28:41 +0900
committerGitHub <noreply@github.com>2020-07-08 09:28:41 +0200
commitf0391db096552c7dd3750b0e244d5b3930fb480d (patch)
tree714d94bc3998037a5f026cd34ef3cf2387103331
parent084994db9c858b79ffe37dd1fc7205150d0a2447 (diff)
downloadspack-f0391db096552c7dd3750b0e244d5b3930fb480d.tar.gz
spack-f0391db096552c7dd3750b0e244d5b3930fb480d.tar.bz2
spack-f0391db096552c7dd3750b0e244d5b3930fb480d.tar.xz
spack-f0391db096552c7dd3750b0e244d5b3930fb480d.zip
typhon: fix build with Fujitsu compilers (#17424)
-rw-r--r--var/spack/repos/builtin/packages/typhon/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/typhon/package.py b/var/spack/repos/builtin/packages/typhon/package.py
index 350bd6ded2..621b2479e4 100644
--- a/var/spack/repos/builtin/packages/typhon/package.py
+++ b/var/spack/repos/builtin/packages/typhon/package.py
@@ -23,3 +23,7 @@ class Typhon(CMakePackage):
version('3.0', sha256='b9736269ebe9c0fd7efabc4716b0543144780ed26ddaf595083354113aa2efd7')
depends_on('mpi')
+
+ def setup_build_environment(self, env):
+ if self.spec.satisfies('%fj'):
+ env.set('LDFLAGS', '--linkfortran')