<pre> gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; </pre> My `ld --help | grep "supported targets"` shows nothing. So I suppose ld_shlibs should be no. and then: <pre> if test "$ld_shlibs" = no; then hardcode_libdir_flag_spec= fi </pre> hardcode_libdir_flag_spec should be null. But unluckily it was not like that...