hdf5: fix link error in dependent packages with %fj (#22512)

This commit is contained in:
Tomoki, Karatsu 2021-03-29 22:12:59 +09:00 committed by GitHub
parent 1a080b9a00
commit 3d7069e039
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -287,6 +287,10 @@ def configure_args(self):
'FCFLAGS=' + self.compiler.fc_pic_flag,
])
# Fujitsu Compiler dose not add Fortran runtime in rpath.
if '+fortran %fj' in self.spec:
extra_args.append('LDFLAGS=-lfj90i -lfj90f -lfjsrcinfo -lelf')
if '+mpi' in self.spec:
# The HDF5 configure script warns if cxx and mpi are enabled
# together. There doesn't seem to be a real reason for this, except