fujitsu-ssl2: fix to library list and env variables (#22462)
This commit is contained in:
parent
f57626a7c4
commit
adf19379cc
1 changed files with 10 additions and 5 deletions
|
@ -54,6 +54,9 @@ def blas_libs(self):
|
|||
else:
|
||||
libslist.append("libfjlapack.so")
|
||||
|
||||
if "+parallel" in spec: # parallel
|
||||
libslist.extend(["libfjomphk.so", "libfjomp.so"])
|
||||
|
||||
if spec.target == "a64fx": # Build with SVE support
|
||||
if "+parallel" in spec: # parallel
|
||||
libslist.append("libssl2mtexsve.a")
|
||||
|
@ -70,7 +73,7 @@ def blas_libs(self):
|
|||
else:
|
||||
libslist.append("libfj90fmt.a")
|
||||
|
||||
libslist.extend(["libfj90f.a", "libfjsrcinfo.a", "libfj90rt.so"])
|
||||
libslist.extend(["libfj90f.so", "libfjsrcinfo.so", "libfj90rt.so"])
|
||||
|
||||
libspath = find(self.prefix.lib64, libslist, recursive=False)
|
||||
libs = LibraryList(libspath)
|
||||
|
@ -105,6 +108,9 @@ def scalapack_libs(self):
|
|||
["libmpi_usempi_ignore_tkr.so", "libmpi_mpifh.so"]
|
||||
)
|
||||
|
||||
if "+parallel" in spec: # parallel
|
||||
libslist.extend(["libfjomphk.so", "libfjomp.so"])
|
||||
|
||||
if spec.target == "a64fx": # Build with SVE support
|
||||
if "+parallel" in spec: # parallel
|
||||
libslist.append("libssl2mtexsve.a")
|
||||
|
@ -121,7 +127,7 @@ def scalapack_libs(self):
|
|||
else:
|
||||
libslist.append("libfj90fmt.a")
|
||||
|
||||
libslist.extend(["libfj90f.a", "libfjsrcinfo.a", "libfj90rt.so"])
|
||||
libslist.extend(["libfj90f.so", "libfjsrcinfo.so", "libfj90rt.so"])
|
||||
|
||||
libspath = find(self.prefix.lib64, libslist, recursive=False)
|
||||
libs = LibraryList(libspath)
|
||||
|
@ -131,9 +137,8 @@ def scalapack_libs(self):
|
|||
def setup_dependent_build_environment(self, env, dependent_spec):
|
||||
path = self.prefix.include
|
||||
env.append_flags(
|
||||
"fcc_ENV", "-lm -lrt -lpthread -lelf -lz -ldl -idirafter " + path
|
||||
"fcc_ENV", "-idirafter " + path
|
||||
)
|
||||
env.append_flags(
|
||||
"FCC_ENV", "-lm -lrt -lpthread -lelf -lz -ldl -idirafter " + path
|
||||
"FCC_ENV", "-idirafter " + path
|
||||
)
|
||||
env.append_flags("FORT90C", "-lm -lrt -lpthread -lelf -lz -ldl")
|
||||
|
|
Loading…
Reference in a new issue