summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authora-saitoh-fj <63334055+a-saitoh-fj@users.noreply.github.com>2021-02-11 00:58:10 +0900
committerGitHub <noreply@github.com>2021-02-10 09:58:10 -0600
commit24dd5d12a534c7811e46593ab0aa540601f50046 (patch)
tree6eb7c10bc788be44b43c20e29a4186a42c80c4cc /var
parent08972014f8b23eb69e80a90e28cb875620fb4de2 (diff)
downloadspack-24dd5d12a534c7811e46593ab0aa540601f50046.tar.gz
spack-24dd5d12a534c7811e46593ab0aa540601f50046.tar.bz2
spack-24dd5d12a534c7811e46593ab0aa540601f50046.tar.xz
spack-24dd5d12a534c7811e46593ab0aa540601f50046.zip
py-llvmlite: Changing build options when using the FUJITSU compiler (#21585)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-llvmlite/package.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/py-llvmlite/package.py b/var/spack/repos/builtin/packages/py-llvmlite/package.py
index 73ec82e924..6d8e8657aa 100644
--- a/var/spack/repos/builtin/packages/py-llvmlite/package.py
+++ b/var/spack/repos/builtin/packages/py-llvmlite/package.py
@@ -37,6 +37,10 @@ class PyLlvmlite(PythonPackage):
depends_on('binutils', type='build')
def setup_build_environment(self, env):
- # Need to set PIC flag since this is linking statically with LLVM
- env.set('CXX_FLTO_FLAGS', '-flto {0}'.format(
- self.compiler.cxx_pic_flag))
+ if self.spec.satisfies('%fj'):
+ env.set('CXX_FLTO_FLAGS', '{0}'.format(self.compiler.cxx_pic_flag))
+ env.set('LD_FLTO_FLAGS', '-Wl,--exclude-libs=ALL')
+ else:
+ # Need to set PIC flag since this is linking statically with LLVM
+ env.set('CXX_FLTO_FLAGS', '-flto {0}'.format(
+ self.compiler.cxx_pic_flag))