From 55991db9a08e693c50e4ded71525c3d0b1d7ea91 Mon Sep 17 00:00:00 2001 From: "Joshua D. Boyd" Date: Tue, 9 Jan 2024 18:25:48 -0500 Subject: [PATCH] CHange how linking is done. --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ff5b8a3..9f7211f 100644 --- a/setup.py +++ b/setup.py @@ -45,8 +45,10 @@ def run(self): ext_modules=[ Extension( name="lzo", - sources=["lzomodule.c"] + glob(os.path.join(lzo_dir, "src/*.c")), + sources=["lzomodule.c"], # + glob(os.path.join(lzo_dir, "src/*.c")), include_dirs=[os.path.join(lzo_dir, "include")], + libraries=['lzo2'], + library_dirs=[os.path.join(lzo_dir, "lib")], #extra_link_args=["-flat_namespace"] if sys.platform == "darwin" else [], ) ],