+2001-07-29 Steve Ellcey <sje@cup.hp.com>
+
+ * 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 <gary@gnu.org>
From Guido Draheim <Guido.Draheim@tek.com>:
* 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.
\f
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'"
[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*)