From d9013bffe98856421f6dec49fff6efb01e4986eb Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Fri, 3 Aug 2012 17:37:15 -0500 Subject: [PATCH] libCom: Expand comments on -fvisibility in shareLib.h --- src/libCom/misc/shareLib.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libCom/misc/shareLib.h b/src/libCom/misc/shareLib.h index 6940c5266..5a5f94e76 100644 --- a/src/libCom/misc/shareLib.h +++ b/src/libCom/misc/shareLib.h @@ -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