From c20f9f099554048a65de856e140c31ba18f1392b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benno=20F=C3=BCnfst=C3=BCck?= Date: Thu, 10 Jan 2019 17:10:25 +0100 Subject: [PATCH] bindings/python: fix install error due to old libname (#1338) --- bindings/python/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/setup.py b/bindings/python/setup.py index c80fc2a9a1..5ddfd2d9ab 100755 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -57,7 +57,7 @@ VERSION = '{PKG_MAJOR}.{PKG_MINOR}.{PKG_EXTRA}'.format(**VERSION_DATA) if SYSTEM == 'darwin': - VERSIONED_LIBRARY_FILE = "libcapstone.4.dylib" + VERSIONED_LIBRARY_FILE = "libcapstone.{PKG_MAJOR}.dylib".format(**VERSION_DATA) LIBRARY_FILE = "libcapstone.dylib" STATIC_LIBRARY_FILE = 'libcapstone.a' elif SYSTEM in ('win32', 'cygwin'): @@ -65,7 +65,7 @@ LIBRARY_FILE = "capstone.dll" STATIC_LIBRARY_FILE = None else: - VERSIONED_LIBRARY_FILE = "libcapstone.so.4" + VERSIONED_LIBRARY_FILE = "libcapstone.so.{PKG_MAJOR}".format(**VERSION_DATA) LIBRARY_FILE = "libcapstone.so" STATIC_LIBRARY_FILE = 'libcapstone.a'