Commit c3edacbf authored by Mark Lodato's avatar Mark Lodato

freeze: Makefile: use -fno-strict-aliasing

Python 2 cannot compile with strict aliasing, so the Cython modules
should really be compiled with -fno-strict-aliasing.  See Issue #395.
parent 1a313ebd
...@@ -8,7 +8,7 @@ PY_LDFLAGS = $(shell $(PYTHON) -c 'from distutils.sysconfig import get_config_va ...@@ -8,7 +8,7 @@ PY_LDFLAGS = $(shell $(PYTHON) -c 'from distutils.sysconfig import get_config_va
PY_CPPFLAGS = $(shell $(PYTHON) -c 'from distutils.sysconfig import *; print "-I"+get_python_inc()') PY_CPPFLAGS = $(shell $(PYTHON) -c 'from distutils.sysconfig import *; print "-I"+get_python_inc()')
PY_LDLIBS = $(shell $(PYTHON) -c 'from distutils.sysconfig import get_config_var as g; print " ".join(["-lpython"+g("VERSION"), g("SYSLIBS"), g("LIBS"), g("LOCALMODLIBS")])') PY_LDLIBS = $(shell $(PYTHON) -c 'from distutils.sysconfig import get_config_var as g; print " ".join(["-lpython"+g("VERSION"), g("SYSLIBS"), g("LIBS"), g("LOCALMODLIBS")])')
CFLAGS = -fPIC -g -O2 -Wall -Wextra CFLAGS = -fPIC -fno-strict-aliasing -g -O2 -Wall -Wextra
CPPFLAGS = $(PY_CPPFLAGS) CPPFLAGS = $(PY_CPPFLAGS)
LDFLAGS = $(PY_LDFLAGS) LDFLAGS = $(PY_LDFLAGS)
LDLIBS = $(PY_LDLIBS) LDLIBS = $(PY_LDLIBS)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment