From 0de8fef5155e2f1570e70745e6f3d8f52c101dfc Mon Sep 17 00:00:00 2001 From: sauwming Date: Tue, 30 Jan 2024 17:29:25 +0800 Subject: [PATCH] Fixed SWIG Python build failure on Mac (#3848) --- pjsip-apps/src/swig/python/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pjsip-apps/src/swig/python/Makefile b/pjsip-apps/src/swig/python/Makefile index 662662f25..ffe4f86ff 100644 --- a/pjsip-apps/src/swig/python/Makefile +++ b/pjsip-apps/src/swig/python/Makefile @@ -26,7 +26,9 @@ SWIG_FLAGS=-I../../../../pjlib/include \ SRC_DIR=../../../../pjsip/include SRCS=$(SRC_DIR)/pjsua2/endpoint.hpp $(SRC_DIR)/pjsua2/types.hpp -USE_THREADS = -threads -DSWIG_NO_EXPORT_ITERATOR_METHODS +USE_THREADS = -threads +# In SWIG 4.2 the build will fail if we use this flag +#-DSWIG_NO_EXPORT_ITERATOR_METHODS SWIG_FLAGS += -w312 $(USE_THREADS) .PHONY: all install uninstall