[sr-dev] git:master:3366bf4f: app_python: use -fno-strict-aliasing for gcc
Daniel-Constantin Mierla
miconda at gmail.com
Mon Apr 27 10:48:23 CEST 2020
Module: kamailio
Branch: master
Commit: 3366bf4f3746285d9dc29e8a2461f53983f0acf0
URL: https://github.com/kamailio/kamailio/commit/3366bf4f3746285d9dc29e8a2461f53983f0acf0
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/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
More information about the sr-dev
mailing list