diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/py-llvmlite/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/py-llvmlite/package.py | 10 |
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)) |