aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amdfalconx86/recipes-core/llvm/files/0001-force-link-pass.o.patch
blob: e4b5f471347be6b2cb79bf8f6fa5d521cb72e386 (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
32
33
34
35
36
37
38
39
40
41
42
From 2f1e7f43ee516e56f9042c94abf6f90b8f61b7a9 Mon Sep 17 00:00:00 2001
From: Arindam Nath <arindam.nath@amd.com>
Date: Thu, 16 Apr 2015 16:11:24 +0530
Subject: [PATCH 1/1] force link pass.o

Signed-off-by: Arindam Nath <arindam.nath@amd.com>
---
 tools/bugpoint/Makefile | 3 +++
 tools/opt/Makefile      | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/tools/bugpoint/Makefile b/tools/bugpoint/Makefile
index 174f8d2..dfde77c 100644
--- a/tools/bugpoint/Makefile
+++ b/tools/bugpoint/Makefile
@@ -12,6 +12,9 @@ TOOLNAME := bugpoint
 LINK_COMPONENTS := asmparser instrumentation scalaropts ipo linker bitreader \
                    bitwriter irreader vectorize objcarcopts codegen
 
+# Crappy workaround to make sure it links correctly.
+LLVMLibsOptions := ../../lib/IR/Release*/Pass.o
+
 # Support plugins.
 NO_DEAD_STRIP := 1
 
diff --git a/tools/opt/Makefile b/tools/opt/Makefile
index 2422eb4..79ab3f7 100644
--- a/tools/opt/Makefile
+++ b/tools/opt/Makefile
@@ -11,6 +11,9 @@ LEVEL := ../..
 TOOLNAME := opt
 LINK_COMPONENTS := bitreader bitwriter asmparser irreader instrumentation scalaropts objcarcopts ipo vectorize all-targets codegen passes
 
+# Crappy workaround to make sure it links correctly.
+LLVMLibsOptions := ../../lib/IR/Release*/Pass.o
+
 # Support plugins.
 NO_DEAD_STRIP := 1
 
-- 
1.9.1