]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (lt_cv_sys_global_symbol_to_cdecl): Change it from
authorSteve Ellcey <sje@cup.hp.com>
Sun, 29 Jul 2001 14:09:03 +0000 (14:09 +0000)
committerGary V. Vaughan <gary@gnu.org>
Sun, 29 Jul 2001 14:09:03 +0000 (14:09 +0000)
"extern char" to "extern int" so that GCC 3.0 won't complain and
refuse to compile programs containing "extern char main()".

ChangeLog
NEWS
libtool.m4

index 51610f60a81763d1216539bd4814602acba2ad05..2e99b67d3a3083810921a015be5b1d0d58dce07c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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>:     
diff --git a/NEWS b/NEWS
index 6f8332d3979f22ece3b9441b2bd41c47fa9ed5c8..48efe5df30b6df5540166ae465aa9470a9ede488 100644 (file)
--- 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.
 \f
index 5a6921e65e03f51d96a597a0c0d388f30c950510..93a9b3f2999f46f7ceebd8f84e707412d02283e4 100644 (file)
@@ -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*)