From c3edacbf380e9e8763dbbfcd2b9f28d37d049f70 Mon Sep 17 00:00:00 2001 From: Mark Lodato Date: Mon, 12 Oct 2009 00:17:47 -0400 Subject: [PATCH] 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. --- Demos/freeze/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demos/freeze/Makefile b/Demos/freeze/Makefile index fe4f36ea..de593dac 100644 --- a/Demos/freeze/Makefile +++ b/Demos/freeze/Makefile @@ -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_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) LDFLAGS = $(PY_LDFLAGS) LDLIBS = $(PY_LDLIBS) -- 2.26.2