app_python: use -fno-strict-aliasing for gcc
authorDaniel-Constantin Mierla <miconda@gmail.com>
Mon, 27 Apr 2020 08:25:28 +0000 (10:25 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Mon, 27 Apr 2020 08:25:28 +0000 (10:25 +0200)
- python2 is known for not confirming strict aliasing
- it is EoL and likely not going to be fixed
- GH #2298

src/modules/app_python/Makefile

index 0d8bc98..d22e63e 100644 (file)
@@ -29,5 +29,9 @@ endif
 
 DEFS+=-I${PYTHON_INCDIR}
 
 
 DEFS+=-I${PYTHON_INCDIR}
 
+ifeq ($(CC_NAME), gcc)
+DEFS+= -fno-strict-aliasing
+endif
+
 include ../../Makefile.modules
 
 include ../../Makefile.modules