We also add some comments to setup.py to explain the "extra" options
so we remember why we are doing this in the future.

Signed-off-by: Paul Moore <[email protected]>
---
 src/python/setup.py |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/python/setup.py b/src/python/setup.py
index e559a2e..4275ce5 100644
--- a/src/python/setup.py
+++ b/src/python/setup.py
@@ -40,6 +40,9 @@ setup(
        cmdclass = {'build_ext': build_ext},
        ext_modules = [
                Extension("seccomp", ["seccomp.pyx"],
-                       extra_objects=["../.libs/libseccomp-internal.a"])
+                       # unable to handle libtool libraries directly
+                       extra_objects=["../.libs/libseccomp-internal.a"],
+                       # fix build warnings, see PEP 3123
+                       extra_compile_args=["-fno-strict-aliasing"])
        ]
 )


------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
libseccomp-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libseccomp-discuss

Reply via email to