diff options
author | Tomoki, Karatsu <49965247+t-karatsu@users.noreply.github.com> | 2020-07-01 01:02:18 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 11:02:18 -0500 |
commit | 0fd71d24ba8e402ac2ac6cf97e6f52b47e77a73d (patch) | |
tree | 4f11d44b3dbe4fe850816dd826ea353a3f39056c | |
parent | c4c010c0bf746187e4497ac7bb71239727893871 (diff) | |
download | spack-0fd71d24ba8e402ac2ac6cf97e6f52b47e77a73d.tar.gz spack-0fd71d24ba8e402ac2ac6cf97e6f52b47e77a73d.tar.bz2 spack-0fd71d24ba8e402ac2ac6cf97e6f52b47e77a73d.tar.xz spack-0fd71d24ba8e402ac2ac6cf97e6f52b47e77a73d.zip |
cleverleaf: Add C++ link flags for Fujitsu. (#17308)
-rw-r--r-- | var/spack/repos/builtin/packages/cleverleaf/fujitsu_add_link_flags.patch | 10 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/cleverleaf/package.py | 4 |
2 files changed, 14 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cleverleaf/fujitsu_add_link_flags.patch b/var/spack/repos/builtin/packages/cleverleaf/fujitsu_add_link_flags.patch new file mode 100644 index 0000000000..f3146f7a48 --- /dev/null +++ b/var/spack/repos/builtin/packages/cleverleaf/fujitsu_add_link_flags.patch @@ -0,0 +1,10 @@ +--- spack-src/CMakeLists.txt.org 2020-06-29 14:38:00.737544597 +0900 ++++ spack-src/CMakeLists.txt 2020-06-29 14:40:33.758297327 +0900 +@@ -24,6 +24,6 @@ + + add_definitions(-DVERSION="git" -DHOST_NAME="cab") + +-set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "") ++set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "--linkfortran") + + add_subdirectory (src) diff --git a/var/spack/repos/builtin/packages/cleverleaf/package.py b/var/spack/repos/builtin/packages/cleverleaf/package.py index afb4b25ce2..2b8163f5a6 100644 --- a/var/spack/repos/builtin/packages/cleverleaf/package.py +++ b/var/spack/repos/builtin/packages/cleverleaf/package.py @@ -24,6 +24,10 @@ class Cleverleaf(CMakePackage): depends_on('boost') depends_on('cmake@3.1:', type='build') + # The Fujitsu compiler requires the '--linkfortran' + # option to combine C++ and Fortran programs. + patch('fujitsu_add_link_flags.patch', when='%fj') + def flag_handler(self, name, flags): if self.spec.satisfies('%intel') and name in ['cppflags', 'cxxflags']: flags.append(self.compiler.cxx11_flag) |