aboutsummaryrefslogtreecommitdiffstats
path: root/community/radare2/0001-fix-for-build-with-syscapstone.patch
blob: 343e6866ef31a5efa201df6eec325778b303bbf6 (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
From 491b989889d6f74ae8ae7a31efae2ffbcacbea53 Mon Sep 17 00:00:00 2001
From: "longlene@gmail.com" <longlene@gmail.com>
Date: Tue, 22 May 2018 12:52:12 +0800
Subject: [PATCH 1/4] fix for build with syscapstone

---
 libr/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/libr/Makefile b/libr/Makefile
index 05cb40fec..0b39b48c0 100644
--- a/libr/Makefile
+++ b/libr/Makefile
@@ -84,13 +84,18 @@ E+=../shlr/bochs/lib/libbochs.${EXT_AR}
 #E+=../shlr/sdb/src/libsdb.${EXT_AR}
 #endif
 
+ifeq ($(USE_CAPSTONE),1)
+E+=$(CAPSTONE_LDFLAGS)
+else
+E+=../shlr/capstone/libcapstone.${EXT_AR}
+endif
+
 libr.${EXT_SO}: .libr
 	$(CC) -fvisibility=hidden $(MLFLAGS) -shared -dynamiclib -o libr.${EXT_SO}  \
 		.libr/*.o \
 		../shlr/gdb/lib/libgdbr.${EXT_AR} ../shlr/java/libr_java.${EXT_AR} \
 		../shlr/zip/librz.${EXT_AR} \
-		../shlr/libr_shlr.${EXT_AR} $(E)\
-		../shlr/capstone/libcapstone.${EXT_AR}
+		../shlr/libr_shlr.${EXT_AR} $(E)
 
 else
 
-- 
2.17.1