Module: kamailio
Branch: master
Commit: 3366bf4f3746285d9dc29e8a2461f53983f0acf0
URL: 
https://github.com/kamailio/kamailio/commit/3366bf4f3746285d9dc29e8a2461f53983f0acf0

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
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/3366bf4f3746285d9dc29e8a2461f53983f0acf0.diff
Patch: 
https://github.com/kamailio/kamailio/commit/3366bf4f3746285d9dc29e8a2461f53983f0acf0.patch

---

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
 


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to