Merging in latest from upstream (HDFFV/hdf5:refs/heads/develop)

* commit '084704392fa93d1569861c53504e89236468a3b6':
  HDFFV-10037: fixed wrong C link flags
This commit is contained in:
Allen Byrne 2017-10-26 09:58:46 -05:00
commit a7d0090a86

View File

@ -3518,7 +3518,7 @@ if test "X$HDF_FORTRAN" = "Xyes"; then
case "`uname`" in
Linux*)
if test "X$FC_BASENAME" = "Xnagfor"; then
cat libtool | awk '/NAG_Fortran/{flag=1}flag&&/wl=/{$NF="wl=\"-Wl,Wl,,\"";flag=0}1' > libtool.tmp && mv -f libtool.tmp libtool && chmod 755 libtool
cat libtool | awk '/BEGIN LIBTOOL TAG CONFIG: FC/{flag=1}flag&&/wl=/{$NF="wl=\"-Wl,-Wl,,\"";flag=0}1' > libtool.tmp && mv -f libtool.tmp libtool && chmod 755 libtool
fi
;;
esac