Skip to content

Commit b0d16d2

Browse files
Andy Groverstratakis
authored andcommitted
python3: Use -fno-strict-aliasing
Building under Python 2 passes -fno-strict-aliasing to gcc. By default under Python 3 it doesn't, so add it in setup.py. Signed-off-by: Andy Grover <agrover@redhat.com>
1 parent cb245c6 commit b0d16d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def _str2list(pkgstr, onlystr):
6767
'python-ethtool/etherinfo_obj.c',
6868
'python-ethtool/netlink.c',
6969
'python-ethtool/netlink-address.c'],
70+
extra_compile_args=['-fno-strict-aliasing'],
7071
include_dirs = libnl['include'],
7172
library_dirs = libnl['libdirs'],
7273
libraries = libnl['libs'],

0 commit comments

Comments
 (0)