From 4b19791834d716d27d056b619cf1bf7b13f8ef3c Mon Sep 17 00:00:00 2001 From: Debian Qt/KDE Maintainers Date: Tue, 19 Feb 2019 20:25:35 +0000 Subject: [PATCH] reduce_exports Gbp-Pq: Name reduce_exports.diff --- Source/WTF/wtf/ExportMacros.h | 2 +- Source/cmake/OptionsQt.cmake | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/WTF/wtf/ExportMacros.h b/Source/WTF/wtf/ExportMacros.h index 5ae87d05..d4ac6e3e 100644 --- a/Source/WTF/wtf/ExportMacros.h +++ b/Source/WTF/wtf/ExportMacros.h @@ -56,7 +56,7 @@ #elif defined(__GNUC__) && !defined(__CC_ARM) && !defined(__ARMCC__) -#define WTF_EXPORT_DECLARATION __attribute__((visibility("default"))) +#define WTF_EXPORT_DECLARATION #define WTF_IMPORT_DECLARATION WTF_EXPORT_DECLARATION #define WTF_HIDDEN_DECLARATION __attribute__((visibility("hidden"))) diff --git a/Source/cmake/OptionsQt.cmake b/Source/cmake/OptionsQt.cmake index 1930027d..f29b3dd6 100644 --- a/Source/cmake/OptionsQt.cmake +++ b/Source/cmake/OptionsQt.cmake @@ -546,6 +546,7 @@ if (COMPILER_IS_GCC_OR_CLANG AND UNIX) if (NOT SHARED_CORE) set(CMAKE_C_FLAGS "-fvisibility=hidden ${CMAKE_C_FLAGS}") set(CMAKE_CXX_FLAGS "-fvisibility=hidden -fvisibility-inlines-hidden ${CMAKE_CXX_FLAGS}") + add_definitions(-DJS_NO_EXPORT) endif () endif () -- 2.30.2