penblas: fix link error in dependent packages. (#21561)

This commit is contained in:
Toyohisa Kameyama 2021-02-10 02:53:09 +09:00 committed by GitHub
parent 0760c7c704
commit b802e75274
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -277,6 +277,10 @@ def make_defs(self):
if self.spec.satisfies('%gcc@:4.8.4'):
make_defs.append('NO_AVX2=1')
# Fujitsu Compiler dose not add Fortran runtime in rpath.
if self.spec.satisfies('%fj'):
make_defs.append('LDFLAGS=-lfj90i -lfj90f -lfjsrcinfo -lelf')
# Newer versions of openblas will try to find ranlib in the compiler's
# prefix, for instance, .../lib/spack/env/gcc/ranlib, which will fail.
if self.spec.satisfies('@0.3.13:'):