mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
37 lines
1.3 KiB
Diff
37 lines
1.3 KiB
Diff
|
From 4d613a84ce271c6225068bef67d727ae02b2e3b1 Mon Sep 17 00:00:00 2001
|
||
|
From: Pavel Labath <labath@google.com>
|
||
|
Date: Wed, 14 Mar 2018 09:28:38 +0000
|
||
|
Subject: [PATCH] Export LLVM_DYLIB_COMPONENTS in LLVMConfig.cmake
|
||
|
|
||
|
Summary:
|
||
|
This is needed so that external projects (e.g. a standalone build of
|
||
|
lldb) can link to the LLVM shared library via the USE_SHARED argument of
|
||
|
llvm_config. Without this, llvm_config would add LLVM to the link list,
|
||
|
but then also add the constituent static libraries, resulting in
|
||
|
multiply defined symbols.
|
||
|
|
||
|
Reviewers: beanz, mgorny
|
||
|
|
||
|
Subscribers: llvm-commits
|
||
|
|
||
|
Differential Revision: https://reviews.llvm.org/D44391
|
||
|
|
||
|
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327484 91177308-0d34-0410-b5e6-96231b3b80d8
|
||
|
---
|
||
|
cmake/modules/LLVMConfig.cmake.in | 2 ++
|
||
|
1 file changed, 2 insertions(+)
|
||
|
|
||
|
diff --git a/cmake/modules/LLVMConfig.cmake.in b/cmake/modules/LLVMConfig.cmake.in
|
||
|
index fe4df5278498..e70018679846 100644
|
||
|
--- a/cmake/modules/LLVMConfig.cmake.in
|
||
|
+++ b/cmake/modules/LLVMConfig.cmake.in
|
||
|
@@ -13,6 +13,8 @@ set(LLVM_COMMON_DEPENDS @LLVM_COMMON_DEPENDS@)
|
||
|
|
||
|
set(LLVM_AVAILABLE_LIBS @LLVM_AVAILABLE_LIBS@)
|
||
|
|
||
|
+set(LLVM_DYLIB_COMPONENTS @LLVM_DYLIB_COMPONENTS@)
|
||
|
+
|
||
|
set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@)
|
||
|
|
||
|
set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@)
|