summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Moore <pmoore@redhat.com>2014-05-07 11:51:58 -0400
committerPaul Moore <pmoore@redhat.com>2014-05-07 11:51:58 -0400
commit430419e312ceb7c3ca1255b97c8b4ec0151e8bb3 (patch)
treec27f8951a799dfa44468f70bb037f6ced9fbf0d8
parentd21ff2890b891ce3e64bc71b49e6948224c414a0 (diff)
downloadlibseccomp-430419e312ceb7c3ca1255b97c8b4ec0151e8bb3.tar.gz
python: fix a build problem related to PEP 3123
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 <pmoore@redhat.com>
-rw-r--r--src/python/setup.py5
1 files changed, 4 insertions, 1 deletions
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"])
]
)