From f258a9ca6e9be092d4d0eabd76b5f20beadd06f7 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Sat, 12 Jan 2019 00:23:39 +0800 Subject: [PATCH] Build: add -DUSE_SHARED_LLVM=on to Arch Linux --- Build.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Build.md b/Build.md index 5c3a5fc..e3e54bc 100644 --- a/Build.md +++ b/Build.md @@ -132,7 +132,10 @@ To install pre-built **ccls**, use [aur/ccls-git](https://aur.archlinux.org/packages/ccls-git). To build **ccls** on Arch Linux with system Clang+LLVM, you will need to add -`-DLLVM_ENABLE_RTTI=on`. +`-DLLVM_ENABLE_RTTI=on -DUSE_SHARED_LLVM=on`. + +`extra/clang` and `extra/llvm` provide `/usr/lib/{libclangAST.so,libLLVM*.a,libLLVM.so}`. +`libclangAST.so` needs `libLLVM.so` and there would be a conflict if `libLLVM*.a` (instead of `libLLVM.so`) are linked. See https://bugs.archlinux.org/task/60512 ### Gentoo Linux