From 1b36758e54020910c96877608e421ea16acd6ccc Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Sat, 16 Aug 2008 18:20:42 +0200 Subject: [PATCH] Enable response file support for GNU nm; reorder. * 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 --- ChangeLog | 5 +++++ libltdl/m4/libtool.m4 | 16 +++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index a4d231d90..d01fdc8de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-08-16 Ralf Wildenhues + * 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. diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index ab23313a5..ca2bffef5 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -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 -- 2.47.3