Skip to content
Snippets Groups Projects
Commit 9beec6a2 authored by Axel Naumann's avatar Axel Naumann
Browse files

Fix linker invocatin.

parent 218db689
Branches
Tags
No related merge requests found
...@@ -6,16 +6,28 @@ ...@@ -6,16 +6,28 @@
# LICENSE.TXT for details. # LICENSE.TXT for details.
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Keep symbols for JIT resolution
set(LLVM_NO_DEAD_STRIP 1)
set(SOURCES set(SOURCES
Kernel.cpp Kernel.cpp
) )
set(LIBS set(LIBS
clangBasic clangAST
clangAST clangBasic
clangFrontend clangCodeGen
clingInterpreter clangDriver
clingUtils clangFrontend
clangLex
clangParse
clangSema
clangSerialization
clingUserInterface
clingMetaProcessor
clingInterpreter
clingUtils
) )
if( LLVM_ENABLE_PIC ) if( LLVM_ENABLE_PIC )
...@@ -28,10 +40,9 @@ else() ...@@ -28,10 +40,9 @@ else()
set(output_name "clingJupyter") set(output_name "clingJupyter")
endif() endif()
add_clang_library(libclingJupyter ${ENABLE_SHARED} ${ENABLE_STATIC} add_cling_library(libclingJupyter ${ENABLE_SHARED} ${ENABLE_STATIC}
OUTPUT_NAME ${output_name} OUTPUT_NAME ${output_name}
${SOURCES} ${SOURCES}
# DEPENDS clang-headers
LINK_LIBS LINK_LIBS
${LIBS} ${LIBS}
...@@ -41,6 +52,9 @@ add_clang_library(libclingJupyter ${ENABLE_SHARED} ${ENABLE_STATIC} ...@@ -41,6 +52,9 @@ add_clang_library(libclingJupyter ${ENABLE_SHARED} ${ENABLE_STATIC}
Support Support
) )
set_target_properties(libclingJupyter
PROPERTIES ENABLE_EXPORTS 1)
if(ENABLE_SHARED) if(ENABLE_SHARED)
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(LIBCLINGJUPYTER_LINK_FLAGS " -Wl,-compatibility_version -Wl,1") set(LIBCLINGJUPYTER_LINK_FLAGS " -Wl,-compatibility_version -Wl,1")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment