Loading pkgs/development/interpreters/cling/default.nix +3 −1 Original line number Diff line number Diff line Loading @@ -49,8 +49,10 @@ let ''; patches = [ # Applied to clang src ./no-clang-cpp.patch # https://github.com/root-project/root/commit/286d96b12aad8688b9d8e4b3b5df843dcfb716a8 ./fix-llvm-dylib-usage.patch ]; nativeBuildInputs = [ python3 git cmake ]; Loading pkgs/development/interpreters/cling/fix-llvm-dylib-usage.patch 0 → 100644 +24 −0 Original line number Diff line number Diff line diff --git a/tools/cling/tools/driver/CMakeLists.txt b/tools/cling/tools/driver/CMakeLists.txt --- a/tools/cling/tools/driver/CMakeLists.txt +++ b/tools/cling/tools/driver/CMakeLists.txt @@ -9,10 +9,10 @@ # Keep symbols for JIT resolution set(LLVM_NO_DEAD_STRIP 1) +set(LLVM_LINK_COMPONENTS support) + if(BUILD_SHARED_LIBS) set(LIBS - LLVMSupport - clangFrontendTool clingInterpreter @@ -25,8 +25,6 @@ if(BUILD_SHARED_LIBS) ) else() set(LIBS - LLVMSupport - clangASTMatchers clangFrontendTool Loading
pkgs/development/interpreters/cling/default.nix +3 −1 Original line number Diff line number Diff line Loading @@ -49,8 +49,10 @@ let ''; patches = [ # Applied to clang src ./no-clang-cpp.patch # https://github.com/root-project/root/commit/286d96b12aad8688b9d8e4b3b5df843dcfb716a8 ./fix-llvm-dylib-usage.patch ]; nativeBuildInputs = [ python3 git cmake ]; Loading
pkgs/development/interpreters/cling/fix-llvm-dylib-usage.patch 0 → 100644 +24 −0 Original line number Diff line number Diff line diff --git a/tools/cling/tools/driver/CMakeLists.txt b/tools/cling/tools/driver/CMakeLists.txt --- a/tools/cling/tools/driver/CMakeLists.txt +++ b/tools/cling/tools/driver/CMakeLists.txt @@ -9,10 +9,10 @@ # Keep symbols for JIT resolution set(LLVM_NO_DEAD_STRIP 1) +set(LLVM_LINK_COMPONENTS support) + if(BUILD_SHARED_LIBS) set(LIBS - LLVMSupport - clangFrontendTool clingInterpreter @@ -25,8 +25,6 @@ if(BUILD_SHARED_LIBS) ) else() set(LIBS - LLVMSupport - clangASTMatchers clangFrontendTool