--- hdf5-1.14.4-2/configure.ac 2024-04-16 05:47:31.000000000 +1000 +++ hdf5-1.14.3/configure.ac 2023-10-27 06:47:09.000000000 +1000 @@ -4635,5 +4266,11 @@ esac fi +## HDF5 configure code created by autotools with gcc 4.9.2 is adding problematic +## linker flags: -l with no library name; -l , specifically gfortran or m. +## This sed script corrects "-l " first and then "-l " with no library name. +## If the order is not preserved, all instances of "-l " will be removed. +sed -e '/^postdeps/ s/-l \([a-zA-Z]\)/-l\1/g' -e '/^postdeps/ s/-l //g' -i libtool + ## show the configure settings cat src/libhdf5.settings