]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4: Don't include main() when testing for command to
authorAlbert Chin <china@thewrittenword.com>
Fri, 21 Sep 2001 03:06:40 +0000 (03:06 +0000)
committerGary V. Vaughan <gary@gnu.org>
Fri, 21 Sep 2001 03:06:40 +0000 (03:06 +0000)
parse $NM output because some C++ compilers don't allow you to
take the address of main (e.g. HP-UX aCC).

ChangeLog
libtool.m4

index f6ec77ee90a8dd75fb97ea97395d4c952010788a..85fe555c947f91b2d68e8784fb0e5ac82efe3e28 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
-2001-09-18  Albert Chin  <china@thewrittenword.com>
+2001-09-21  Albert Chin  <china@thewrittenword.com>
+
+       * libtool.m4: Don't include main() when testing for command to
+       parse $NM output because some C++ compilers don't allow you to
+       take the address of main (e.g. HP-UX aCC).
 
        * libtool.m4: Some uses of $GXX were unquoted, but GXX is either
        NULL or yes.  Use "$GXX".
index c16a9b8c55ed01f39d03f36ab99393302e88893a..ca61adb222854e861a5d0fcb6338520b301f4efe 100644 (file)
@@ -3741,7 +3741,7 @@ extern "C" {
 
 EOF
          # Now generate the symbol file.
-         eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
+         eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
          cat <<EOF >> conftest.$ac_ext
 #if defined (__STDC__) && __STDC__
@@ -3759,7 +3759,7 @@ const struct {
 lt_preloaded_symbols[[]] =
 {
 EOF
-         sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
+         sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
          cat <<\EOF >> conftest.$ac_ext
   {0, (lt_ptr_t) 0}
 };