summaryrefslogtreecommitdiff
path: root/dev-util/creduce/files/creduce-2.8.0-link-libs.patch
blob: 25e9ef2291651e1951643ac914d8860f2009bb12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 885a675474d93ae4ef929de7520d3ac38ba39156 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Sun, 21 Apr 2019 14:20:34 +0200
Subject: [PATCH] Revert "Do not list `LLVM_LIBS` in the
 `target_link_libraries`."

This breaks linking against shared LLVM.
---
 clang_delta/CMakeLists.txt | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/clang_delta/CMakeLists.txt b/clang_delta/CMakeLists.txt
index 6493abf..ab1dc42 100644
--- a/clang_delta/CMakeLists.txt
+++ b/clang_delta/CMakeLists.txt
@@ -242,11 +242,7 @@ add_executable(clang_delta
   git_version.h
 )
 
-# ENE, LLVM 6.0: LLVM_LIBS end up in the link command line anyway.  I'm not
-# quite sure why!  But if you list LLVM_LIBS here, the `clang_delta' binary
-# can end up with dynamic link errors when it runs (multiply defined symbols).
-#
-target_link_libraries(clang_delta ${CLANG_LIBS})
+target_link_libraries(clang_delta ${CLANG_LIBS} ${LLVM_LIBS})
 
 # Custom target for running clang_delta tests
 #
-- 
2.21.0