From dda118423aeedf95faf1e14754b17e60a0f6e1d6 Mon Sep 17 00:00:00 2001 From: pancake Date: Sun, 23 Nov 2014 23:25:14 +0100 Subject: [PATCH] Use syscapstone from sys/install.sh when cs-3.0 is found by pkg-config --- sys/build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/build.sh b/sys/build.sh index 4e3dfcffe9..de27763342 100755 --- a/sys/build.sh +++ b/sys/build.sh @@ -33,6 +33,11 @@ if [ $? = 0 ]; then export CC fi +pkg-config --atleast-version=3.0 capstone 2>/dev/null +if [ $? = 0 ]; then + CFGARG="${CFGARG} --with-syscapstone" +fi + # build ${MAKE} mrproper > /dev/null 2>&1 if [ -d shlr/capstone/.git ]; then