aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz CEDRO <tomek@cedro.info>2021-05-23 19:35:51 +0200
committerGitHub <noreply@github.com>2021-05-24 01:35:51 +0800
commit3a135d82104774c988d562a351cfe28abff59f77 (patch)
tree091277cdfcea8653c358799c7dbf8fa3d90fde5e
parent1859a8633a633886b5b2c23930ae640e9d90bd36 (diff)
downloadcapstone-3a135d82104774c988d562a351cfe28abff59f77.tar.gz
Enable detection and build on all BSD systems. (#1753)
With FreeBSD, OpenBSD, NetBSD verified we can simply use "bsd". Signed-off-by: Tomasz 'CeDeROM' CEDRO <tomek@cedro.info>
-rwxr-xr-xbindings/python/setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings/python/setup.py b/bindings/python/setup.py
index ab92fa98..7a1eaafd 100755
--- a/bindings/python/setup.py
+++ b/bindings/python/setup.py
@@ -140,8 +140,8 @@ def build_libraries():
# Do not build tests & static library
os.system('cmake -DCMAKE_BUILD_TYPE=RELEASE -DCAPSTONE_BUILD_TESTS=0 -DCAPSTONE_BUILD_STATIC=0 -G "NMake Makefiles" ..')
os.system("nmake")
- elif "freebsd" in SYSTEM:
- # FreeBSD distinguishes make (BSD) vs gmake (GNU). Use cmake + bsd make :-)
+ elif "bsd" in SYSTEM:
+ # *BSD distinguishes make (BSD) vs gmake (GNU). Use cmake + bsd make :-)
if not os.path.exists("build"): os.mkdir("build")
os.chdir("build")
# Do not build tests & static library