]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Enable response file support for GNU nm; reorder.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 16 Aug 2008 16:20:42 +0000 (18:20 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Tue, 13 Jan 2009 09:04:23 +0000 (10:04 +0100)
* libltdl/m4/libtool.m4 (LT_PATH_NM): Move setting of
nm_file_list_spec ...
(_LT_CMD_GLOBAL_SYMBOLS): ... here.  Also enable for GNU nm if
supported.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
libltdl/m4/libtool.m4

index a4d231d90f18c7a4476b5806ce400de548cb0fab..d01fdc8de8aaf6579a8d1ac3f61f35fe4f37819d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-08-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * libltdl/m4/libtool.m4 (LT_PATH_NM): Move setting of
+       nm_file_list_spec ...
+       (_LT_CMD_GLOBAL_SYMBOLS): ... here.  Also enable for GNU nm if
+       supported.
+
        * tests/static.at (ccache -all-static): Ignore compiler stderr.
        Reported by Peter Rosin.
 
index ab23313a5658f74fa7f7447ff62fa875a5d239e4..ca2bffef5dfbb2cc2ceaa0e825b84f0373f446a4 100644 (file)
@@ -3282,13 +3282,6 @@ AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
     lt_cv_nm_interface="MS dumpbin"
   fi
   rm -f conftest*])
-
-if test "$lt_cv_nm_interface" = "MS dumpbin"; then
-  nm_file_list_spec='@'
-fi
-
-_LT_DECL([], [nm_file_list_spec], [1],
-    [Specify filename containing input files for $NM])
 ])# LT_PATH_NM
 
 # Old names:
@@ -3566,6 +3559,13 @@ else
   AC_MSG_RESULT(ok)
 fi
 
+# Response file support.
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
+  nm_file_list_spec='@'
+elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
+  nm_file_list_spec='@'
+fi
+
 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
     [Take the output of nm and produce a listing of raw symbols and C names])
 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
@@ -3576,6 +3576,8 @@ _LT_DECL([global_symbol_to_c_name_address],
 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
     [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
     [Transform the output of nm in a C name address pair when lib prefix is needed])
+_LT_DECL([], [nm_file_list_spec], [1],
+    [Specify filename containing input files for $NM])
 ]) # _LT_CMD_GLOBAL_SYMBOLS