diff --git a/var/spack/repos/builtin/packages/hdf5/package.py b/var/spack/repos/builtin/packages/hdf5/package.py index 337dfa5e71..8425242b53 100644 --- a/var/spack/repos/builtin/packages/hdf5/package.py +++ b/var/spack/repos/builtin/packages/hdf5/package.py @@ -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