libCom: Expand comments on -fvisibility in shareLib.h

This commit is contained in:
Andrew Johnson
2012-08-03 17:37:15 -05:00
parent 282d67caef
commit d9013bffe9

View File

@@ -139,8 +139,10 @@
#elif __GNUC__ >= 4
/*
* See http://gcc.gnu.org/wiki/Visibility
* For these to have any effect, the compiler and linker must be given the flag
* For these to work, gcc must be given the flag
* -fvisibility=hidden
* and g++ the flags
* -fvisibility=hidden -fvisibility-inlines-hidden
*/
# define epicsShareExtern __attribute__ ((visibility("default"))) extern