From 491b989889d6f74ae8ae7a31efae2ffbcacbea53 Mon Sep 17 00:00:00 2001 From: "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