libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: fix dumpbin symbol pipe


From: Peter Ekberg
Subject: FYI: fix dumpbin symbol pipe
Date: Fri, 23 Sep 2005 12:38:07 +0200

* Ralf Wildenhues wrote on Friday, September 23, 2005 12:14 CEST:
> > Here's a patch:
> > 
> >     * libltdl/m4/libtool.m4 (_LT_CMD_GLOBAL_SYMBOLS): Fix awk script
> >     to be a single line so that the cache variable isn't multiline.
> 
> Good, please apply!  (Will look rather ugly for the user, but 
> looks are clearly second winners here.)

Applied this:

Index: libltdl/m4/libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/m4/libtool.m4,v
retrieving revision 1.22
diff -u -r1.22 libtool.m4
--- libltdl/m4/libtool.m4       22 Sep 2005 06:03:59 -0000      1.22
+++ libltdl/m4/libtool.m4       23 Sep 2005 09:21:00 -0000
@@ -3080,17 +3080,17 @@
     # and D for any global variable.
     # Also find C++ and __fastcall symbols from MSVC++,
     # which start with @ or ?.
-    lt_cv_sys_global_symbol_pipe="$AWK ['
-      {last_section=section; section=\$ 3}
-      /Section length .*#relocs.*(pick any)/{hide[last_section]=1}
-      \$ 0!~/External *\|/{next}
-      / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next}
-      {if(hide[section]) next}
-      {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"}
-      {split(\$ 0, a, /\||\r/); split(a[2], s)}
-      s[1]~/address@hidden/{print s[1], s[1]; next}
-      s[1]~prfx {split(s[1],t,\"@\"); print t[1],
substr(t[1],length(prfx))}
-      ' prfx=^$ac_symprfx]"
+    lt_cv_sys_global_symbol_pipe="$AWK ['"\
+"     {last_section=section; section=\$ 3};"\
+"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
+"     \$ 0!~/External *\|/{next};"\
+"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
+"     {if(hide[section]) next};"\
+"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
+"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
+"     s[1]~/address@hidden/{print s[1], s[1]; next};"\
+"     s[1]~prfx {split(s[1],t,\"@\"); print t[1],
substr(t[1],length(prfx))}"\
+"     ' prfx=^$ac_symprfx]"
   else
     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[
]]\($symcode$symcode*\)[[       ]][[
]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   fi

Cheers,
Peter




reply via email to

[Prev in Thread] Current Thread [Next in Thread]