From 11b21a726363a2c7979925fd6b929a6ff7532819 Mon Sep 17 00:00:00 2001 From: rdbo Date: Tue, 2 Jan 2024 14:43:33 -0300 Subject: [PATCH] fixed python linking issues --- bindings/python/setup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bindings/python/setup.py b/bindings/python/setup.py index a7cf1010..c8fddfd4 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -13,6 +13,9 @@ def readme(): f.close() return content +def search_installed_libmem(): + return True + def platform_libs(): libs = [] if platform == "win32": @@ -21,6 +24,10 @@ def platform_libs(): libs.append("dl") elif platform.find("bsd") != -1: libs.extend(["dl", "kvm", "procstat", "elf"]) + + if search_installed_libmem(): + libs.append("libmem") + return libs def get_sources(src_dir):