Add an extra library name template to the list used by the WIN32 targets.
authorNick Clifton <nickc@redhat.com>
Fri, 23 Mar 2018 12:08:54 +0000 (12:08 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 23 Mar 2018 12:08:54 +0000 (12:08 +0000)
PR 22948
* emultempl/pe.em (open_dynamic_archive): Add libXXX.lib template
to library name list.
* emultempl/pep.em (open_dynamic_archive): Likewise.
* ld.texinfo (WIN32): Update documentation.

ld/ChangeLog
ld/emultempl/pe.em
ld/emultempl/pep.em
ld/ld.texinfo

index be06ae7d0daf7630495df265ba444476e2281c1a..330998cb42a9af7a26e3f95b50530c3469179095 100644 (file)
@@ -1,3 +1,11 @@
+2018-03-23  Nick Clifton  <nickc@redhat.com>
+
+       PR 22948
+       * emultempl/pe.em (open_dynamic_archive): Add libXXX.lib template
+       to library name list.
+       * emultempl/pep.em (open_dynamic_archive): Likewise.
+       * ld.texinfo (WIN32): Update documentation.
+
 2018-03-20  Roland McGrath  <mcgrathr@google.com>
 
        * testsuite/ld-elf/shared.exp (pr20995-2): XFAIL on aarch64*-*-elf*,
index ffa8b74b20449b3106d1d1916ae505464d30c1d9..5cc933a91c5f3704e445b3f2fbb0453a133e0776 100644 (file)
@@ -2347,6 +2347,8 @@ gld_${EMULATION_NAME}_open_dynamic_archive
       { "lib%s.a", FALSE },
       /* The 'native' spelling of an import lib name is "foo.lib".  */
       { "%s.lib", FALSE },
+      /* PR 22948 - Check for an import library.  */
+      { "lib%s.lib", FALSE },
 #ifdef DLL_SUPPORT
       /* Try "<prefix>foo.dll" (preferred dll name, if specified).  */
       {        "%s%s.dll", TRUE },
index cea210c96c061757c637d526d70fc9b2cba6a9b3..96942ecba8e662562a9e54cc73a278360570fcb9 100644 (file)
@@ -2120,6 +2120,8 @@ gld_${EMULATION_NAME}_open_dynamic_archive
       { "lib%s.a", FALSE },
       /* The 'native' spelling of an import lib name is "foo.lib".  */
       { "%s.lib", FALSE },
+      /* PR 22948 - Check for an import library.  */
+      { "lib%s.lib", FALSE },
 #ifdef DLL_SUPPORT
       /* Try "<prefix>foo.dll" (preferred dll name, if specified).  */
       {        "%s%s.dll", TRUE },
index 226e2deb32df0cdd587c6b9d4fb7034ed1b90ef8..391f52bf59275d22c3d9665a9b255641799b78fb 100644 (file)
@@ -8078,6 +8078,7 @@ libxxx.dll.a
 xxx.dll.a
 libxxx.a
 xxx.lib
+libxxx.lib
 cygxxx.dll (*)
 libxxx.dll
 xxx.dll