Skip to content
Snippets Groups Projects
Commit 47f4ad7d authored by erlanger's avatar erlanger Committed by Vassil Vassilev
Browse files

Include all symbols from interpreter in jupyter shared lib

parent 9d8c84b6
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,26 @@ set(SOURCES
Kernel.cpp
)
#Solve unresolved symbols bug in unix
#See https://github.com/vgvassilev/cling/issues/114
if(WIN32)
#FIXME: I don't know what flags are used in windows
#to include all symbols from a static library
#Maybe the bug is not present in windows and we leave it
#as it is
set(INTERPRETER
clingInterpreter
)
else()
#Force all interpreter symbols to be present in the shared library
#this will prevent missing symbol errors because we don't know at
#link time what function calls will be made by the user of
#the shared library
set(INTERPRETER
-Wl,--whole-archive clingInterpreter -Wl,--no-whole-archive
)
endif()
set(LIBS
clangAST
clangBasic
......@@ -26,7 +46,7 @@ set(LIBS
clingUserInterface
clingMetaProcessor
clingInterpreter
${INTERPRETER}
clingUtils
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment