automake
[Top][All Lists]
Advanced

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

Re: Questions on exporting functions from a shared library


From: Ralf Wildenhues
Subject: Re: Questions on exporting functions from a shared library
Date: Fri, 19 Sep 2008 19:34:58 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

* Brian Dessent wrote on Fri, Sep 19, 2008 at 05:18:08PM CEST:
> Jef Driesen wrote:
> 
> > The preprocessor stuff is automated. I only have to maintain a symbols
> > file with a few #ifdef's in it:
> > 
> > mylib_abc
> > #ifdef MYLIB_XYZ_SUPPORT
> >     mylib_xyz
> > #endif
> 
> But it's still two places where you have to maintain it, i.e. adding a
> new function means adding it to the header and adding it to the
> proto-.def file.

Extracting symbols lists from sources, including ifdefs, shouldn't be
more than a few lines of awk script.  Alternatively, you can employ
naming discipline and use -export-symbols-regex.  Just for example.

Cheers,
Ralf




reply via email to

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