You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Irina Boverman (JIRA)" <ji...@apache.org> on 2013/02/25 21:40:12 UTC

[jira] [Updated] (PROTON-250) Add -fvisibility option when building shared libraries

     [ https://issues.apache.org/jira/browse/PROTON-250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Irina Boverman updated PROTON-250:
----------------------------------

    Description: 
Add an option to "hide" symbols in shared libraries except when they are declared public.
Extends efforts already in place for Windows builds.
Excludes an effort to determine what symbols should be considered "public" interfaces.

The gcc 4 -fvisibility option is said to:

...very substantially improve linking and load times of shared object libraries, produce more optimized code, provide near-perfect API export and prevent symbol clashes. It is strongly recommended that you use this in any shared objects you distribute.

See here: http://gcc.gnu.org/wiki/Visibility

Attached patch (patch.txt) will build libqpid-proton.so shared library using this flag.
It reduces number of symbols from 700+ to 500+.


  was:
Add an option to "hide" symbols in shared libraries except when they are declared public.
Extends efforts already in place for Windows builds.
Excludes an effort to determine what symbols should be considered "public" interfaces.

The gcc 4 -fvisibility option is said to:

...very substantially improve linking and load times of shared object libraries, produce more optimized code, provide near-perfect API export and prevent symbol clashes. It is strongly recommended that you use this in any shared objects you distribute.

See here: http://gcc.gnu.org/wiki/Visibility


    
> Add -fvisibility option when building shared libraries 
> -------------------------------------------------------
>
>                 Key: PROTON-250
>                 URL: https://issues.apache.org/jira/browse/PROTON-250
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: proton-c
>    Affects Versions: 0.3
>         Environment: GNU Compiler
>            Reporter: Irina Boverman
>            Priority: Minor
>
> Add an option to "hide" symbols in shared libraries except when they are declared public.
> Extends efforts already in place for Windows builds.
> Excludes an effort to determine what symbols should be considered "public" interfaces.
> The gcc 4 -fvisibility option is said to:
> ...very substantially improve linking and load times of shared object libraries, produce more optimized code, provide near-perfect API export and prevent symbol clashes. It is strongly recommended that you use this in any shared objects you distribute.
> See here: http://gcc.gnu.org/wiki/Visibility
> Attached patch (patch.txt) will build libqpid-proton.so shared library using this flag.
> It reduces number of symbols from 700+ to 500+.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira