Skip to content

Commit

Permalink
cmake: restore -fvisibility=hidden flag
Browse files Browse the repository at this point in the history
This removed when the manual flag manipulation bit was removed. This
restores the previous behavior and adds -fvisibility-inlines-hidden

Signed-off-by: GitHub <[email protected]>
  • Loading branch information
alanxz authored Apr 1, 2021
1 parent 20bebf4 commit 9be09a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 9be09a3

Please sign in to comment.