libtool-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Libtool branch, master, updated. v2.4.2.444-31-g13aa364


From: Peter Rosin
Subject: [SCM] GNU Libtool branch, master, updated. v2.4.2.444-31-g13aa364
Date: Fri, 09 May 2014 21:13:36 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  13aa364c0c66f9f6b41f98772d0735039ac974a1 (commit)
      from  da30ce4dc9554c80f1931600af2b8bbab486476e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 13aa364c0c66f9f6b41f98772d0735039ac974a1
Author: Peter Rosin <address@hidden>
Date:   Tue May 6 10:11:34 2014 +0200

    libtool: fix nm test for MSYS/MinGW
    
    The check for the -B option of nm does not work as intended on MSYS/MinGW.
    MSYS converts /dev/null to the DOW/Windows "equivanent" special file NUL,
    but the MinGW nm treats this file as any empty file. This means that
    you might end up with some fallback nm instead of the desired nm. This
    is not normally a problem, but if one nm is built without lto support, it
    starts to matter.
    
    Fixes sr #108558, reported by LRN.
    
    * m4/libtool.m4 (LT_PATH_NM) [MSYS]: Use a non-existant file instead of
    /dev/null when checking if nm supports -B.
    
    Signed-off-by: Peter Rosin <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 m4/libtool.m4 |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 0454030..320d8b3 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -3509,8 +3509,13 @@ else
        # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
        #   nm: unknown option "B" ignored
        # Tru64's nm complains that /dev/null is an invalid object file
-       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
-       */dev/null* | *'Invalid file or object type'*)
+       # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
+       case $build_os in
+       mingw*) lt_bad_file=conftest.nm/nofile ;;
+       *) lt_bad_file=/dev/null ;;
+       esac
+       case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
+       *$lt_bad_file* | *'Invalid file or object type'*)
          lt_cv_path_NM="$tmp_nm -B"
          break 2
          ;;


hooks/post-receive
-- 
GNU Libtool



reply via email to

[Prev in Thread] Current Thread [Next in Thread]