diff options
author | David Kalnischkies <david@kalnischkies.de> | 2018-01-27 02:11:20 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2018-02-19 15:56:09 +0100 |
commit | 6e2877548b114729b69b817b872419edde732d0f (patch) | |
tree | 8857377557d0e464810c64e8b723dcff9bdcdd6a | |
parent | d90eb8132961aa481b94e63246a0ed23fc36d182 (diff) |
restore gcc visibility=hidden for apt-private
This setting was lost in the transition to cmake.
The private library has no public users and hence the default visibility
of symbols changed early to hidden – something which should eventually
be done for the public libraries as well, but one step at the time.
-rw-r--r-- | apt-private/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-private/CMakeLists.txt b/apt-private/CMakeLists.txt index 5dda36c92..88a8f97fe 100644 --- a/apt-private/CMakeLists.txt +++ b/apt-private/CMakeLists.txt @@ -15,6 +15,7 @@ add_library(apt-private SHARED ${library}) target_link_libraries(apt-private PUBLIC apt-pkg) set_target_properties(apt-private PROPERTIES VERSION ${MAJOR}.${MINOR}) set_target_properties(apt-private PROPERTIES SOVERSION ${MAJOR}) +set_target_properties(apt-private PROPERTIES CXX_VISIBILITY_PRESET hidden) add_version_script(apt-private) # Install the library and the headers |