Module: kamailio
Branch: 5.3
Commit: 178cbde6eac86a86b92b107cf2f039400c578a5f
URL:
https://github.com/kamailio/kamailio/commit/178cbde6eac86a86b92b107cf2f0394…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-05-01T09:54:30+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
(cherry picked from commit 3366bf4f3746285d9dc29e8a2461f53983f0acf0)
---
Modified: src/modules/app_python/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/178cbde6eac86a86b92b107cf2f0394…
Patch:
https://github.com/kamailio/kamailio/commit/178cbde6eac86a86b92b107cf2f0394…
---
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