- python2 is known for not confirming strict aliasing - it is EoL and likely not going to be fixed - GH #2298
@@ -29,5 +29,9 @@ endif
DEFS+=-I${PYTHON_INCDIR}
+ifeq ($(CC_NAME), gcc)
+DEFS+= -fno-strict-aliasing
+endif
+
include ../../Makefile.modules