From: Ralf Wildenhues Date: Sun, 19 Sep 2004 12:13:50 +0000 (+0000) Subject: * libtool.m4 (AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE): The linker X-Git-Tag: release-1-5-10~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=31a6c0ed835d81960fa9a3904b10e9700acc2339;p=thirdparty%2Flibtool.git * libtool.m4 (AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE): The linker distinguishes data and code symbols on linux-gnu/ia64. Fixes multiple testsuite failures. Backport from 1.9c. --- diff --git a/ChangeLog b/ChangeLog index 7381b7ab1..a484ed961 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,10 @@ -2004-09-18 Alexandre Duret-Lutz , +2004-09-19 Ralf Wildenhues + + * libtool.m4 (AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE): The linker + distinguishes data and code symbols on linux-gnu/ia64. Fixes + multiple testsuite failures. Backport from 1.9c. + +2004-09-19 Alexandre Duret-Lutz , Ralf Wildenhues * demo/Makefile.am, pdemo/Makefile.am: Use per-target CFLAGS only for the Libtool-built objects, so that automake won't diff --git a/libtool.m4 b/libtool.m4 index 8b3a504a7..c3b71e893 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -4404,6 +4404,13 @@ hpux*) # Its linker distinguishes data from code symbols lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" ;; +linux*) + if test "$host_cpu" = ia64; then + symcode='[[ABCDGIRSTW]]' + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + fi + ;; irix* | nonstopux*) symcode='[[BCDEGRST]]' ;;