]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Don't settle for any dumpbin/link program as name lister.
authorPeter Rosin <peda@lysator.liu.se>
Wed, 18 Mar 2009 18:52:27 +0000 (19:52 +0100)
committerPeter Rosin <peda@lysator.liu.se>
Wed, 18 Mar 2009 20:24:20 +0000 (21:24 +0100)
* libltdl/m4/libtool.m4 (LT_PATH_NM): When locating dumpbin or
link -dump, check if they appear to really be capable of name
listing, in order to eliminate e.g. link from coreutils. This
makes the name lister decision fall back on nm as the default if
no acceptable candidate is found, which mainly happens on
(arguably broken) cross compiles.
* NEWS: Update
* THANKS: Update
Reports by Rudolf Leitgeb and Peter Kjellerstedt.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
NEWS
THANKS
libltdl/m4/libtool.m4

index ea0b35eddb1fa068cc43a4f7adceb7eb2dcbb948..2699a09279e7f790cee414fb251dff7b6302ef7d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2009-01-26  Peter Rosin  <peda@lysator.liu.se>
+
+       Don't settle for any dumpbin/link program as name lister.
+       * libltdl/m4/libtool.m4 (LT_PATH_NM): When locating dumpbin or
+       link -dump, check if they appear to really be capable of name
+       listing, in order to eliminate e.g. link from coreutils. This
+       makes the name lister decision fall back on nm as the default if
+       no acceptable candidate is found, which mainly happens on
+       (arguably broken) cross compiles.
+       * NEWS: Update
+       * THANKS: Update
+       Reports by Rudolf Leitgeb and Peter Kjellerstedt.
+
 2009-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        Document INNER_TESTSUITEFLAGS, drop leading space.
diff --git a/NEWS b/NEWS
index 8c3fa330ac4f1382b7c3726ccf4b73a0f1075272..ec9c83579b4add4df50639f7798a5632882d5fcd 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -31,6 +31,8 @@ New in 2.2.8 2009-??-??: git version 2.2.7a, Libtool team:
   - Link tests are guarded by cache variables so they can be avoided for
     bootstrapping purposes (e.g., when link tests are not possible).
   - Argument mangling of execute mode has been improved (i.e., lessened).
+  - Fix 2.1b regression that caused nm to not be the default name lister.
+    The regression affected mainly (arguably broken) cross compiles.
 
 * Miscellaneous changes:
 
diff --git a/THANKS b/THANKS
index 0f72886b8bd0ff8f9a925df491b9e0a024253b66..1094becc85785a8c806c3005ce06b036e60c2145 100644 (file)
--- a/THANKS
+++ b/THANKS
   Paul Eggert                  eggert@twinsun.com
   Peter Eisentraut             peter_e@gmx.net
   Peter Jeremy                 peterjeremy@optushome.com.au
+  Peter Kjellerstedt           peter.kjellerstedt@axis.com
   Rainer Orth                  ro@TechFak.Uni-Bielefeld.DE
   Rainer Tammer                        tammer@tammer.net
   Ralf Menzel                  menzel@ls6.cs.uni-dortmund.de
   Roberto Bagnara              bagnara@cs.unipr.it
   Roland Mainz                 roland.mainz@nrubsig.org
   Roumen Petrov                        bugtrack@roumenpetrov.info
+  Rudolf Leitgeb               r.leitgeb@x-pin.com
   Sam Thursfield               ssssam@gmail.com
   Sebastian Wilhelmi           wilhelmi@ira.uka.de
   Simon Josefsson              jas@extundo.com
index b6f9f069c036fd4a4d126530c355c73d3029e484..8fca5136262f2d49e5e850bde9a96d2145301c95 100644 (file)
@@ -3156,7 +3156,19 @@ if test "$lt_cv_path_NM" != "no"; then
   NM="$lt_cv_path_NM"
 else
   # Didn't find any BSD compatible name lister, look for dumpbin.
-  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
+  if test -n "$DUMPBIN"; then :
+    # Let the user override the test.
+  else
+    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
+    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
+    *COFF*)
+      DUMPBIN="$DUMPBIN -symbols"
+      ;;
+    *)
+      DUMPBIN=:
+      ;;
+    esac
+  fi
   AC_SUBST([DUMPBIN])
   if test "$DUMPBIN" != ":"; then
     NM="$DUMPBIN"