1) could be done by some header which everything uses, doing
#if defined HAVE_VISIBILITY_ATTRIBUTE && defined __PIC__
#define hidden __attribute__((visibility ("hidden")))
#else
#define hidden /**/
#endif
and write prototypes like:
void hidden someshlibprivateroutine (void);
extern int someshlibprivatevar hidden;
etc.
I sent you a message about this before (in reference to libGL.so), but I never heard back from you. I think this is a very good idea! I would prefer it if __HIDDEN__ or HIDDEN or something similar were used. That makes it stand out more. Also, is there any reason to not have the symbols be hidden in non-PIC mode?
_______________________________________________ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel
