From 8bdbd0343e69d00b5229386a5da0a54a336a28f6 Mon Sep 17 00:00:00 2001 From: Alan Antonuk Date: Thu, 1 Apr 2021 19:20:18 +0000 Subject: [PATCH] cmake: restore -fvisibility=hidden flag This removed when the manual flag manipulation bit was removed. This restores the previous behavior and adds -fvisibility-inlines-hidden Signed-off-by: GitHub --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 74364cfb..473642a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,10 @@ project(rabbitmq-c "C") set(CMAKE_C_STANDARD 90) set(CMAKE_C_STANDARD_REQUIRED ON) -SET(CMAKE_C_EXTENSIONS ON) +set(CMAKE_C_EXTENSIONS ON) + +set(CMAKE_C_VISIBILITY_PRESET hidden) +set(CMAKE_VISIBILITY_INLINES_HIDDEN ON) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)