]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Fix func_win32_libid for 64-bit Windows.
authorAlon Bar-Lev <alon.barlev@gmail.com>
Sun, 23 Nov 2008 14:23:58 +0000 (15:23 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 23 Nov 2008 14:23:58 +0000 (15:23 +0100)
* libltdl/config/ltmain.m4sh (func_win32_libid): Accept file
format 'pe-x86-64'.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
NEWS
libltdl/config/ltmain.m4sh

index f40536c239191dfbcff65bfac4857a2a4452077d..af83a7281cbcf2017f41108d4acdc5c6b3fea7f3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-11-23  Alon Bar-Lev  <alon.barlev@gmail.com>  (tiny change)
+
+       Fix func_win32_libid for 64-bit Windows.
+       * libltdl/config/ltmain.m4sh (func_win32_libid): Accept file
+       format 'pe-x86-64'.
+       * NEWS: Update.
+
 2008-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        Avoid newlines in some AT_CHECK commands.
diff --git a/NEWS b/NEWS
index c00e404d89725129a79739da07519601554ae92a..1c990427999771c4854ac74efd90193235ff6b96 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,7 @@ New in 2.2.8 2008-??-??: git version 2.2.7a, Libtool team:
   - New libtool command line flag --no-verbose, which disables only
     the extra "verbose" output messages and has no effect on the
     default informational messages.
+  - Improved support for 64bit Windows (mingw64).
 
 * Bug fixes:
 
index 28ad40de510a348199a8ebb0112552eabd9c05e1..e7dcdf290b1fb2ffd5a8ae40a9f6988702f8310f 100644 (file)
@@ -2159,6 +2159,7 @@ static const void *lt_preloaded_setup() {
 # Need a lot of goo to handle *both* DLLs and import libs
 # Has to be a shell function in order to 'eat' the argument
 # that is supplied when $file_magic_command is called.
+# Despite the name, also deal with 64 bit binaries.
 func_win32_libid ()
 {
   $opt_debug
@@ -2170,7 +2171,7 @@ func_win32_libid ()
     ;;
   *ar\ archive*) # could be an import, or static
     if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
-       $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
+       $EGREP 'file format (pe-i386(.*architecture: i386)?|pe-x86-64)' >/dev/null; then
       win32_nmres=`eval $NM -f posix -A $1 |
        $SED -n -e '
            1,100{