Index: libltdl/m4/libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/m4/libtool.m4,v
retrieving revision 1.6
diff -u -r1.6 libtool.m4
--- libltdl/m4/libtool.m4	29 Aug 2005 15:36:26 -0000	1.6
+++ libltdl/m4/libtool.m4	29 Aug 2005 20:36:51 -0000
@@ -3082,7 +3082,9 @@
     # and D for any global variable.
     # Also find C++ and __fastcall symbols from MSVC++,
     # which start with @ or ?.
-    lt_cv_sys_global_symbol_pipe="$SED -n -e ['/ UNDEF [^|]*()/d; / 00* UNDEF /d;
+    lt_cv_sys_global_symbol_pipe="$SED -n -e ['/Section length.*#relocs/h; x;
+	/\(pick any\)/{ x; d; }
+	x;
 	s/.*().*External *| *$ac_symprfx$sympat.*/T $ac_symprfx\1 \1/p;
 	s/.*External *| *$ac_symprfx$sympat.*/D $ac_symprfx\1 \1/p;
 	s/.*().*External *| *\([@?][_A-Za-z0-9@?]*\).*/T \1 \1/p;
