Explorar el Código

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 hace 5 años
padre
commit
3366bf4f37
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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