From 1ebf16d64fab1f8e75ee2d2db15af1dd49adb179 Mon Sep 17 00:00:00 2001 From: Andrzej Warzynski Date: Sun, 28 Jul 2024 16:49:28 +0100 Subject: [PATCH] Add comments for Arch Linux --- tools/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 6cdc8de..f0599eb 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -11,6 +11,9 @@ target_include_directories( "${CMAKE_CURRENT_SOURCE_DIR}/../include") if(UNIX AND EXISTS "/etc/arch-release") + # LLVM is built as shared library on Arch Linux (*), so we need to link the + # static executable against libLLVM.so. See #117 + # (*) https://gitlab.archlinux.org/archlinux/packaging/packages/llvm/-/blob/main/PKGBUILD?ref_type=heads#L89 message("LLVM is installed as shared library on Arch Linux") target_link_libraries(static LLVM) else()