From: Steve Ellcey Date: Sun, 29 Jul 2001 14:09:03 +0000 (+0000) Subject: * libtool.m4 (lt_cv_sys_global_symbol_to_cdecl): Change it from X-Git-Tag: release-1-4d~97 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=855b0b5caec57d86a86174829caff711cc74c6aa;p=thirdparty%2Flibtool.git * libtool.m4 (lt_cv_sys_global_symbol_to_cdecl): Change it from "extern char" to "extern int" so that GCC 3.0 won't complain and refuse to compile programs containing "extern char main()". --- diff --git a/ChangeLog b/ChangeLog index 51610f60a..2e99b67d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-07-29 Steve Ellcey + + * libtool.m4 (lt_cv_sys_global_symbol_to_cdecl): Change it from + "extern char" to "extern int" so that GCC 3.0 won't complain and + refuse to compile programs containing "extern char main()". + 2001-07-29 Gary V. Vaughan From Guido Draheim : diff --git a/NEWS b/NEWS index 6f8332d39..48efe5df3 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,7 @@ New in 1.4d: 2001-??-??; CVS version 1.4c, Libtool team: * Support /lib/w32api in recent cygwin releases. * Support cross compilation to mingw. * Improved support for linking with gcc on aix4* and aix5*. +* Improved support for GCC 3.0. * Initial support for QNX RTOS. * Bug fixes. diff --git a/libtool.m4 b/libtool.m4 index 5a6921e65..93a9b3f29 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -3583,7 +3583,7 @@ AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], symxfrm='\1 \2\3 \3' # Transform an extracted symbol line into a proper C declaration -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" # Transform an extracted symbol line into symbol name and symbol address 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'" @@ -3597,7 +3597,7 @@ cygwin* | mingw* | pw32*) [symcode='[ABCDGISTW]'] ;; hpux*) # Its linker distinguishes data from code symbols - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + 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'" ;; irix*)