Sfoglia il codice sorgente

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

(cherry picked from commit 3366bf4f3746285d9dc29e8a2461f53983f0acf0)
Daniel-Constantin Mierla 5 anni fa
parent
commit
ed089ab7a6
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      src/modules/app_python/Makefile

+ 4 - 0
src/modules/app_python/Makefile

@@ -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