Backport link test fix from upstream Libtool:
tree9a7f64be994d59704d77c3520c29b11dd8d4a5de
-rw-r--r-- 393 .cvsignore
-rw-r--r-- 18002 COPYING
-rw-r--r-- 25291 COPYING.LIB
-rw-r--r-- 10500 COPYING.LIBGLOSS
-rw-r--r-- 36790 COPYING.NEWLIB
-rw-r--r-- 35147 COPYING3
-rw-r--r-- 7639 COPYING3.LIB
-rw-r--r-- 406306 ChangeLog
-rw-r--r-- 4277 MAINTAINERS
-rw-r--r-- 26731 Makefile.def
-rw-r--r-- 1792420 Makefile.in
-rw-r--r-- 60201 Makefile.tpl
-rw-r--r-- 1719 README
-rw-r--r-- 713 README-maintainer-mode
drwxr-xr-x - bfd
drwxr-xr-x - binutils
-rwxr-xr-x 3707 compile
-rw-r--r-- 25088 config-ml.in
-rwxr-xr-x 45461 config.guess
-rwxr-xr-x 14979 config.rpath
-rwxr-xr-x 33834 config.sub
drwxr-xr-x - config
-rwxr-xr-x 415328 configure
-rw-r--r-- 98000 configure.ac
drwxr-xr-x - cpu
-rwxr-xr-x 16619 depcomp
-rwxr-xr-x 1875 djunpack.bat
drwxr-xr-x - elfcpp
drwxr-xr-x - etc
drwxr-xr-x - gas
drwxr-xr-x - gold
drwxr-xr-x - gprof
drwxr-xr-x - include
-rwxr-xr-x 9233 install-sh
drwxr-xr-x - intl
drwxr-xr-x - ld
drwxr-xr-x - libiberty
-rw-r--r-- 259868 libtool.m4
-rw-r--r-- 1768 ltgcc.m4
-rw-r--r-- 243267 ltmain.sh
-rw-r--r-- 11938 ltoptions.m4
-rw-r--r-- 4372 ltsugar.m4
-rw-r--r-- 701 ltversion.m4
-rw-r--r-- 5707 lt~obsolete.m4
-rw-r--r-- 1087 makefile.vms
-rwxr-xr-x 11014 missing
-rwxr-xr-x 2179 mkdep
-rwxr-xr-x 3474 mkinstalldirs
-rwxr-xr-x 384 move-if-change
drwxr-xr-x - opcodes
-rw-r--r-- 191 setup.com
-rw-r--r-- 10696 src-release
-rwxr-xr-x 2265 symlink-tree
drwxr-xr-x - texinfo
-rwxr-xr-x 6193 ylwrap