diff options
-rw-r--r-- | comphelper/inc/comphelper/componentmodule.hxx | 7 | ||||
-rw-r--r-- | comphelper/util/makefile.pmk | 13 | ||||
-rw-r--r-- | i18npool/util/makefile.pmk | 13 | ||||
-rw-r--r-- | sax/util/makefile.pmk | 6 | ||||
-rw-r--r-- | sot/util/makefile.pmk | 14 | ||||
-rw-r--r-- | svtools/uno/makefile.mk | 1 | ||||
-rw-r--r-- | svtools/util/svl.pmk | 13 | ||||
-rw-r--r-- | svtools/util/svt.pmk | 13 | ||||
-rw-r--r-- | svtools/workben/unodialog/makefile.mk | 1 | ||||
-rw-r--r-- | toolkit/util/makefile.pmk | 6 | ||||
-rw-r--r-- | tools/util/makefile.pmk | 13 | ||||
-rw-r--r-- | ucbhelper/util/makefile.pmk | 13 | ||||
-rw-r--r-- | unotools/util/makefile.pmk | 13 | ||||
-rw-r--r-- | vcl/util/makefile2.pmk | 6 |
14 files changed, 17 insertions, 115 deletions
diff --git a/comphelper/inc/comphelper/componentmodule.hxx b/comphelper/inc/comphelper/componentmodule.hxx index 25b6315ee40b..9e136072a73e 100644 --- a/comphelper/inc/comphelper/componentmodule.hxx +++ b/comphelper/inc/comphelper/componentmodule.hxx @@ -417,18 +417,19 @@ namespace comphelper //= implementing the API of a component library (component_*) #define IMPLEMENT_COMPONENT_LIBRARY_API( module_class, initializer_function ) \ - extern "C" void SAL_CALL component_getImplementationEnvironment( \ + extern "C" SAL_DLLPUBLIC_EXPORT void SAL_CALL \ + component_getImplementationEnvironment( \ const sal_Char **ppEnvTypeName, uno_Environment ** /*ppEnv*/ ) \ { \ *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME; \ } \ - extern "C" sal_Bool SAL_CALL component_writeInfo( \ + extern "C" SAL_DLLPUBLIC_EXPORT sal_Bool SAL_CALL component_writeInfo( \ void* pServiceManager, void* pRegistryKey ) \ { \ initializer_function(); \ return module_class::getInstance().writeComponentInfos( pServiceManager, pRegistryKey ); \ } \ - extern "C" void* SAL_CALL component_getFactory( \ + extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory( \ const sal_Char* pImplementationName, void* pServiceManager, void* pRegistryKey ) \ { \ initializer_function(); \ diff --git a/comphelper/util/makefile.pmk b/comphelper/util/makefile.pmk index 464db5f1f083..fa057a4986a4 100644 --- a/comphelper/util/makefile.pmk +++ b/comphelper/util/makefile.pmk @@ -36,15 +36,4 @@ STL_OS2_BUILDING=1 # define COMPHELPER_DLLIMPLEMENTATION (see @ comphelperdllapi.h) CDEFS += -DCOMPHELPER_DLLIMPLEMENTATION -# set default symbol visibility / scope to hidden -.IF "$(COMNAME)" == "gcc3" -.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" - CFLAGS += -fvisibility=hidden -.ENDIF # HAVE_GCC_VISIBILITY_FEATURE -.ENDIF # gcc3 - -.IF "$(COMNAME)" == "sunpro5" -.IF "$(CCNUMVER)" >= "00050005" - CFLAGS += -xldscope=hidden -.ENDIF # 5.5 -.ENDIF # sunpro5 +VISIBILITY_HIDDEN=TRUE diff --git a/i18npool/util/makefile.pmk b/i18npool/util/makefile.pmk index 04c8491eb172..8d4084233e1a 100644 --- a/i18npool/util/makefile.pmk +++ b/i18npool/util/makefile.pmk @@ -32,15 +32,4 @@ # define I18NPOOL_DLLIMPLEMENTATION (see @ i18npool/i18npooldllapi.h) CDEFS += -DI18NPOOL_DLLIMPLEMENTATION -# set default symbol visibility / scope to hidden -.IF "$(COMNAME)" == "gcc3" -.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" - CFLAGS += -fvisibility=hidden -.ENDIF # HAVE_GCC_VISIBILITY_FEATURE -.ENDIF # gcc3 - -.IF "$(COMNAME)" == "sunpro5" -.IF "$(CCNUMVER)" >= "00050005" - CFLAGS += -xldscope=hidden -.ENDIF # 5.5 -.ENDIF # sunpro5 +VISIBILITY_HIDDEN=TRUE diff --git a/sax/util/makefile.pmk b/sax/util/makefile.pmk index 4130b4071428..cfb446dde5d4 100644 --- a/sax/util/makefile.pmk +++ b/sax/util/makefile.pmk @@ -31,8 +31,4 @@ # Reduction of exported symbols: CDEFS += -DSAX_DLLIMPLEMENTATION -.IF "$(COMNAME)" == "gcc3" && "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" -CFLAGS += -fvisibility=hidden -.ELIF "$(COMNAME)" == "sunpro5" && "$(CCNUMVER)" >= "00050005" -CFLAGS += -xldscope=hidden -.ENDIF +VISIBILITY_HIDDEN=TRUE diff --git a/sot/util/makefile.pmk b/sot/util/makefile.pmk index 5653efa692e4..939d66818cd0 100644 --- a/sot/util/makefile.pmk +++ b/sot/util/makefile.pmk @@ -31,17 +31,5 @@ # define SOT_DLLIMPLEMENTATION (see @ = sotdllapi.h) CDEFS += -DSOT_DLLIMPLEMENTATION - -# set default symbol visibility / scope to hidden -.IF "$(COMNAME)" == "gcc3" -.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" - CFLAGS += -fvisibility=hidden -.ENDIF # HAVE_GCC_VISIBILITY_FEATURE -.ENDIF # gcc3 - -.IF "$(COMNAME)" == "sunpro5" -.IF "$(CCNUMVER)" >= "00050005" - CFLAGS += -xldscope=hidden -.ENDIF # 5.5 -.ENDIF # sunpro5 +VISIBILITY_HIDDEN=TRUE diff --git a/svtools/uno/makefile.mk b/svtools/uno/makefile.mk index 346ecf9886bb..8f61c7100508 100644 --- a/svtools/uno/makefile.mk +++ b/svtools/uno/makefile.mk @@ -34,6 +34,7 @@ PRJNAME=svtools TARGET=svtmisc.uno LIBTARGET=NO ENABLE_EXCEPTIONS=TRUE +VISIBILITY_HIDDEN=TRUE # --- Settings ---------------------------------- diff --git a/svtools/util/svl.pmk b/svtools/util/svl.pmk index ce70138b375e..aec76257e743 100644 --- a/svtools/util/svl.pmk +++ b/svtools/util/svl.pmk @@ -32,15 +32,4 @@ # define SVL_DLLIMPLEMENTATION (see @ svldllapi.h) CDEFS += -DSVL_DLLIMPLEMENTATION -# set default symbol visibility / scope to hidden -.IF "$(COMNAME)" == "gcc3" -.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" - CFLAGS += -fvisibility=hidden -.ENDIF # HAVE_GCC_VISIBILITY_FEATURE -.ENDIF # gcc3 - -.IF "$(COMNAME)" == "sunpro5" -.IF "$(CCNUMVER)" >= "00050005" - CFLAGS += -xldscope=hidden -.ENDIF # 5.5 -.ENDIF # sunpro5 +VISIBILITY_HIDDEN=TRUE diff --git a/svtools/util/svt.pmk b/svtools/util/svt.pmk index 9060e29f91d9..5f36197ce089 100644 --- a/svtools/util/svt.pmk +++ b/svtools/util/svt.pmk @@ -32,15 +32,4 @@ # define SVT_DLLIMPLEMENTATION (see @ svtdllapi.h) CDEFS += -DSVT_DLLIMPLEMENTATION -# set default symbol visibility / scope to hidden -.IF "$(COMNAME)" == "gcc3" -.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" - CFLAGS += -fvisibility=hidden -.ENDIF # HAVE_GCC_VISIBILITY_FEATURE -.ENDIF # gcc3 - -.IF "$(COMNAME)" == "sunpro5" -.IF "$(CCNUMVER)" >= "00050005" - CFLAGS += -xldscope=hidden -.ENDIF # 5.5 -.ENDIF # sunpro5 +VISIBILITY_HIDDEN=TRUE diff --git a/svtools/workben/unodialog/makefile.mk b/svtools/workben/unodialog/makefile.mk index 098acfd979a0..c6cd6e5d8491 100644 --- a/svtools/workben/unodialog/makefile.mk +++ b/svtools/workben/unodialog/makefile.mk @@ -36,6 +36,7 @@ TARGET=udlg USE_DEFFILE=TRUE ENABLE_EXCEPTIONS=TRUE +VISIBILITY_HIDDEN=TRUE # --- Settings ---------------------------------- diff --git a/toolkit/util/makefile.pmk b/toolkit/util/makefile.pmk index 49da9b4fc2c0..8bb9f5d4bc28 100644 --- a/toolkit/util/makefile.pmk +++ b/toolkit/util/makefile.pmk @@ -31,11 +31,7 @@ # Reduction of exported symbols: CDEFS += -DTOOLKIT_DLLIMPLEMENTATION -.IF "$(COMNAME)" == "gcc3" && "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" -CFLAGS += -fvisibility=hidden -.ELIF "$(COMNAME)" == "sunpro5" && "$(CCNUMVER)" >= "00050005" -CFLAGS += -xldscope=hidden -.ENDIF +VISIBILITY_HIDDEN=TRUE # FIXME: sprinkle some TOOLKIT_DLLPUBLIC diff --git a/tools/util/makefile.pmk b/tools/util/makefile.pmk index e00a3ba5df87..09d9908a5049 100644 --- a/tools/util/makefile.pmk +++ b/tools/util/makefile.pmk @@ -32,15 +32,4 @@ # define TOOLS_DLLIMPLEMENTATION (see @ toolsdllapi.h) CDEFS += -DTOOLS_DLLIMPLEMENTATION -# set default symbol visibility / scope to hidden -.IF "$(COMNAME)" == "gcc3" -.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" - CFLAGS += -fvisibility=hidden -.ENDIF # HAVE_GCC_VISIBILITY_FEATURE -.ENDIF # gcc3 - -.IF "$(COMNAME)" == "sunpro5" -.IF "$(CCNUMVER)" >= "00050005" - CFLAGS += -xldscope=hidden -.ENDIF # 5.5 -.ENDIF # sunpro5 +VISIBILITY_HIDDEN=TRUE diff --git a/ucbhelper/util/makefile.pmk b/ucbhelper/util/makefile.pmk index 836165aa7f8d..23f38aa614e5 100644 --- a/ucbhelper/util/makefile.pmk +++ b/ucbhelper/util/makefile.pmk @@ -32,15 +32,4 @@ # define UCBHELPER_DLLIMPLEMENTATION (see @ ucbhelperdllapi.h) CDEFS += -DUCBHELPER_DLLIMPLEMENTATION -# set default symbol visibility / scope to hidden -.IF "$(COMNAME)" == "gcc3" -.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" - CFLAGS += -fvisibility=hidden -.ENDIF # HAVE_GCC_VISIBILITY_FEATURE -.ENDIF # gcc3 - -.IF "$(COMNAME)" == "sunpro5" -.IF "$(CCNUMVER)" >= "00050005" - CFLAGS += -xldscope=hidden -.ENDIF # 5.5 -.ENDIF # sunpro5 +VISIBILITY_HIDDEN=TRUE diff --git a/unotools/util/makefile.pmk b/unotools/util/makefile.pmk index d24326884699..a59b857ac7b2 100644 --- a/unotools/util/makefile.pmk +++ b/unotools/util/makefile.pmk @@ -32,15 +32,4 @@ # define UNOTOOLS_DLLIMPLEMENTATION (see @ unotoolsdllapi.h) CDEFS += -DUNOTOOLS_DLLIMPLEMENTATION -# set default symbol visibility / scope to hidden -.IF "$(COMNAME)" == "gcc3" -.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" - CFLAGS += -fvisibility=hidden -.ENDIF # HAVE_GCC_VISIBILITY_FEATURE -.ENDIF # gcc3 - -.IF "$(COMNAME)" == "sunpro5" -.IF "$(CCNUMVER)" >= "00050005" - CFLAGS += -xldscope=hidden -.ENDIF # 5.5 -.ENDIF # sunpro5 +VISIBILITY_HIDDEN=TRUE diff --git a/vcl/util/makefile2.pmk b/vcl/util/makefile2.pmk index 8da0f6e559cb..0e57d7aeb80b 100644 --- a/vcl/util/makefile2.pmk +++ b/vcl/util/makefile2.pmk @@ -31,11 +31,7 @@ # Reduction of exported symbols: CDEFS += -DVCL_DLLIMPLEMENTATION -.IF "$(COMNAME)" == "gcc3" && "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" -CFLAGS += -fvisibility=hidden -.ELIF "$(COMNAME)" == "sunpro5" && "$(CCNUMVER)" >= "00050005" -CFLAGS += -xldscope=hidden -.ENDIF +VISIBILITY_HIDDEN=TRUE .IF "$(GUIBASE)"=="aqua" OBJCXXFLAGS=-x objective-c++ -fobjc-exceptions |