On Wed, 2016-10-05 at 08:03 +0000, Adel Boutros wrote:
> Hello,
> 
> 
> We are trying to compile Proton on Solaris. We have stumbled upon the
> usage of macro (__attribute__) which is only available in GCC and not
> on SunStudio.

In this case the simplest thing to do I believe is turn off symbol
hiding (there is a build option for this)

> 
> 
> In proton-c/bindings/cpp/include/proton/internal/export.hpp:
> 
> #  define PN_CPP_EXPORT __attribute ((visibility ("default")))
> 
> 
> Checking GCC definition of "__attribute " and "visibility", it seems
> that default visibility does nothing because it is the default
> behavior.
> 
> 
> Is there a reason for this definition? If not, can we safely define
> PN_CPP_EXPORT and PN_CPP_CLASS_IMPORT  to empty macro in that case in
> the "#else" part?

I think this in conjunction with turning off symbol hiding will be
fine. Obviously you will then have many more symbols exported than
necessary - you may want to look into a linker symbol map for proton-c
to cut them down again to the ones actually needed.


Andrew


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to