From 762bfec2c849854fc0247acf8d2f107c27b17940 Mon Sep 17 00:00:00 2001 From: Slávek Banko Date: Fri, 31 Dec 2021 12:15:57 +0100 Subject: Add option WITH_GCC_VISIBILITY. Fix building with hidden visibility. Add missing definitions to config.h.cmake. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- CMakeLists.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index ac2bbc2..3963ad8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,12 +41,13 @@ tde_setup_paths( ) ##### optional stuff ############################ -option( WITH_ALL_OPTIONS "Enable all sane optional stuff" OFF ) -option( WITH_ARTS "Enable aRts support" ${WITH_ALL_OPTIONS} ) -option( WITH_SDL "Enable SDL support" ${WITH_ALL_OPTIONS} ) -option( WITH_BERKELEY_DB "Enable Berkeley DB support" ${WITH_ALL_OPTIONS} ) -option( WITH_XMMS "Enable xmms support" OFF ) -option( WITH_TEST "Build tests" OFF ) +option( WITH_ALL_OPTIONS "Enable all sane optional stuff" OFF ) +option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} ) +option( WITH_ARTS "Enable aRts support" ${WITH_ALL_OPTIONS} ) +option( WITH_SDL "Enable SDL support" ${WITH_ALL_OPTIONS} ) +option( WITH_BERKELEY_DB "Enable Berkeley DB support" ${WITH_ALL_OPTIONS} ) +option( WITH_XMMS "Enable xmms support" OFF ) +option( WITH_TEST "Build tests" OFF ) ##### options comments ########################## -- cgit v1.2.3