Module: kamailio Branch: master Commit: 3366bf4f3746285d9dc29e8a2461f53983f0acf0 URL: https://github.com/kamailio/kamailio/commit/3366bf4f3746285d9dc29e8a2461f539...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2020-04-27T10:25:28+02:00
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
---
Modified: src/modules/app_python/Makefile
---
Diff: https://github.com/kamailio/kamailio/commit/3366bf4f3746285d9dc29e8a2461f539... Patch: https://github.com/kamailio/kamailio/commit/3366bf4f3746285d9dc29e8a2461f539...
---
diff --git a/src/modules/app_python/Makefile b/src/modules/app_python/Makefile index 0d8bc98701..d22e63e6a4 100644 --- a/src/modules/app_python/Makefile +++ b/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