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

Re: shlib-with-non-pic-code



Mike Hommey wrote:

> 
> Does the code contain any __attribute__((visibility("hidden"))) kinda stuff ?
> 

I could find the m4 macro KDE_ENABLE_HIDDEN_VISIBILITY, which checks if
 -fvisibility is supported. config.h (for older versions which still
used autools) contained
/* #undef __KDE_HAVE_GCC_VISIBILITY */

extern "C"
{
// avoid problems with elder kde installations
#ifdef __KDE_HAVE_GCC_VISIBILITY
    KDE_EXPORT int kdemain(int argc, char **argv);
#else
    int kdemain(int argc, char **argv);
#endif
}

and

#ifdef __KDE_HAVE_GCC_VISIBILITY_DISABLED_MACRO
#define SVNQT_EXPORT __attribute__ ((visibility("visible")))
#define SVNQT_NOEXPORT __attribute__ ((visibility("hidden")))
#else
#define SVNQT_EXPORT
#define SVNQT_NOEXPORT
#endif

The new cmake build system currently does not (yet) check for
-fvisibility, so __KDE_HAVE_GCC_VISIBILITY is also not defined.


Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: