Skip to content

Commit

Permalink
Don't re-export symbols from static library on Linux (#1461)
Browse files Browse the repository at this point in the history
  • Loading branch information
ihnorton authored Jan 3, 2020
1 parent d3543bd commit cfe4981
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tiledb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,16 @@ if (TILEDB_STATIC)
)
endif()

# Don't re-export symbols from static (archive) libraries
# Prevents conflicts with other versions of (e.g.) OpenSSL
# loaded in the same process namespace, which can cause
# crashes if the versions are not compatible.
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
set_target_properties(tiledb_shared
PROPERTIES
LINK_FLAGS "-Wl,--exclude-libs=ALL")
endif()

############################################################
# Installation
############################################################
Expand Down

0 comments on commit cfe4981

Please sign in to comment.