Fixed SWIG Python build failure on Mac (#3848)

This commit is contained in:
sauwming 2024-01-30 17:29:25 +08:00 committed by GitHub
parent e12a8d17a0
commit 0de8fef515
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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