Browse Source

app_python: use -fno-strict-aliasing for gcc

- python2 is known for not confirming strict aliasing
- it is EoL and likely not going to be fixed
- GH #2298
Daniel-Constantin Mierla 5 years ago
parent
commit
3366bf4f37
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/modules/app_python/Makefile

+ 4 - 0
src/modules/app_python/Makefile

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