diff options
Diffstat (limited to 'community/radare2/0001-fix-for-build-with-syscapstone.patch')
-rw-r--r-- | community/radare2/0001-fix-for-build-with-syscapstone.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/community/radare2/0001-fix-for-build-with-syscapstone.patch b/community/radare2/0001-fix-for-build-with-syscapstone.patch new file mode 100644 index 0000000000..343e6866ef --- /dev/null +++ b/community/radare2/0001-fix-for-build-with-syscapstone.patch @@ -0,0 +1,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 + |