aports/main/libseccomp/py-shared.patch
Sertonix 4dc2e6cc3c main/libseccomp: fix python bindings
module was installed to the wrong place and avoid calling setup.py
directly.

Also link to libseccomp dynamically instead of statically to reduce size
2025-11-25 16:37:47 +00:00

13 lines
337 B
Diff

--- a/src/python/setup.py
+++ b/src/python/setup.py
@@ -39,7 +39,7 @@ setup(
platforms = "Linux",
ext_modules = cythonize([
Extension("seccomp", ["seccomp.pyx"],
- # unable to handle libtool libraries directly
- extra_objects=["../.libs/libseccomp.a"]),
+ libraries=["seccomp"],
+ extra_link_args=["-L../.libs"]),
])
)