On Fri, Dec 21, 2001 at 05:15:46PM -0500, Cliff Woolley wrote:
> On Fri, 21 Dec 2001, Brad Nicholes wrote:
> 
> > realizing that this is just a hack.  If we are going to use the AWK
> > script to produce the export list, then it needs to be much smarter.  It
> > has to obey the same preprocessor rules as the compiler does.  AP_DEBUG
> 
> Forgive me for stating the obvious, but if this is the case, why not just
> run the awk script through cpp?

How about if we link the library and then use "nm" to list all the symbols
and then find all symbols that start with "apr_" and export those.

That will give us a *precise* set of symbols, without worry for whatever set
of conditions were present at preprocessor or compilation time.

I understand "nm" isn't portable, but most platforms have such a tool. On
Windows, it is "objdump" (IIRC). I bet we can find a similar tool on all
platforms. If not, then we can hope there is a platform specific way to link
in all symbols, or that we don't need the hack, or that we can use a "pretty
close" AWK script.

Thoughts?

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

Reply via email to