Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions interpreter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ else()
set(CMAKE_C_VISIBILITY_PRESET hidden)
endif()
if (NOT MSVC AND NOT APPLE)
# Requires the linker to resolve the symbol internally and prevents
# conflicts when linked with another software using also LLVM like in
# the problem reported for Julia in
# https://github.com/JuliaHEP/ROOT.jl/issues/17#issuecomment-882719292
# Only needed for Linux: Mac uses linker namespaces and Windows explicit export/import
string(APPEND CMAKE_SHARED_LINKER_FLAGS " -Wl,-Bsymbolic")
ROOT_ADD_CXX_FLAG(CMAKE_CXX_FLAGS "-fno-semantic-interposition")
endif()
set(CMAKE_VISIBILITY_INLINES_HIDDEN "ON")
Expand Down