diff options
author | John Levon <john.levon@nutanix.com> | 2021-05-28 18:47:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-28 18:47:07 +0100 |
commit | 950a9847fee01cc80f749bf0ba2636a407c0e7c8 (patch) | |
tree | 8f1924d9e70983f2114773e512352dcdafdc8f33 /CMakeLists.txt | |
parent | ad88ffd9acdf4deec83cb3f5fdae4fd62ec30efe (diff) | |
download | libvfio-user-950a9847fee01cc80f749bf0ba2636a407c0e7c8.zip libvfio-user-950a9847fee01cc80f749bf0ba2636a407c0e7c8.tar.gz libvfio-user-950a9847fee01cc80f749bf0ba2636a407c0e7c8.tar.bz2 |
hide non-ABI symbols (#538)
Default to hidden visibility to remove non-public symbols from API users (and
improve performance a little). Every public function gets an EXPORT annotation.
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 10086ba..742ecf2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,6 +57,8 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_GNU_SOURCE -Wall -Werror -Wextra") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-missing-field-initializers -Wmissing-declarations") +set(CMAKE_C_FLAGS + "${CMAKE_C_FLAGS} -fvisibility=hidden") # public headers add_subdirectory(include) |