Exporting all symbols

Dirk Feytons dirk.feytons at gmail.com
Wed Mar 16 12:35:15 UTC 2016


On 16 March 2016 at 10:26, Ruslan Ermilov <ru at nginx.com> wrote:

> On Tue, Mar 15, 2016 at 02:33:09PM +0100, Dirk Feytons wrote:
> > Hi,
> >
> > With the introduction of the dynamic modules feature nginx is now always
> > exporting its symbols. This is a bit unfortunate for our use case: we
> > incorporate nginx in an embedded device and keep the binary size down by
> > only enabling a couple (static) modules and removing unused symbols with
> > -ffunction-sections -fdata-sections and -Wl,--gc-sections. This makes
> quite
> > a difference but it now no longer works due to the hardcoded -Wl,-E
> >
> > I can easily patch the build system but I'm hoping for an official
> > solution. Perhaps some build flag to disable support for dynamic modules?
>
> Does this work for you?
>
> $ auto/configure --with-cc-opt=-fvisibility=hidden
>
>
Yes indeed, this works.
Thanks for the tip!


Dirk F.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20160316/a56bd147/attachment.html>


More information about the nginx-devel mailing list