Skip to content

Commit

Permalink
libdnf5: Set hidden visibility to all inlined class member functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jrohel committed Mar 22, 2024
1 parent 1c24d51 commit f89223e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libdnf5/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ set(DNF_SO_VERSION 1)
set_target_properties(libdnf5 PROPERTIES OUTPUT_NAME "dnf5")
set_target_properties(libdnf5 PROPERTIES SOVERSION ${DNF_SO_VERSION})
set_target_properties(libdnf5 PROPERTIES C_VISIBILITY_PRESET hidden CXX_VISIBILITY_PRESET hidden)
set_target_properties(libdnf5 PROPERTIES VISIBILITY_INLINES_HIDDEN ON)
# required to have dlopen symbol
target_link_libraries(libdnf5 PUBLIC ${CMAKE_DL_LIBS})

Expand Down

0 comments on commit f89223e

Please sign in to comment.