aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/python3
diff options
context:
space:
mode:
Diffstat (limited to 'tools/depends/target/python3')
-rw-r--r--tools/depends/target/python3/Makefile4
-rw-r--r--tools/depends/target/python3/modules.setup6
2 files changed, 10 insertions, 0 deletions
diff --git a/tools/depends/target/python3/Makefile b/tools/depends/target/python3/Makefile
index 7263cd58ce..c210edd0bf 100644
--- a/tools/depends/target/python3/Makefile
+++ b/tools/depends/target/python3/Makefile
@@ -60,6 +60,10 @@ ifeq ($(OS),android)
else
cd $(PLATFORM); sed -ie 's|_locale -DPy_BUILD_CORE_BUILTIN _localemodule.c # -lintl|_locale -DPy_BUILD_CORE_BUILTIN _localemodule.c -lintl $(LINK_ICONV)|' Modules/Setup
endif
+ifeq ($(OS),linux)
+ # _posixshmem module requires librt for linux for SHM_OPEN/SHM_UNLINK
+ cd $(PLATFORM); sed -ie 's|# -lrt # _posixshmem|-lrt # _posixshmem|' Modules/Setup
+endif
ifeq ($(OS),osx)
echo "_scproxy \$$(srcdir)/Modules/_scproxy.c -framework SystemConfiguration -framework CoreFoundation" >> $(PLATFORM)/Modules/Setup
endif
diff --git a/tools/depends/target/python3/modules.setup b/tools/depends/target/python3/modules.setup
index b2068535b3..a7db7a2eb7 100644
--- a/tools/depends/target/python3/modules.setup
+++ b/tools/depends/target/python3/modules.setup
@@ -254,6 +254,12 @@ _sha3 _sha3/sha3module.c
# _blake module
_blake2 _blake2/blake2module.c _blake2/blake2b_impl.c _blake2/blake2s_impl.c
+# _multiprocessing module
+_multiprocessing _multiprocessing/multiprocessing.c _multiprocessing/semaphore.c
+
+# _posixshmem module does not run on android platform due to missing primitives shm_open/shm_unlink
+_posixshmem _multiprocessing/posixshmem.c -I$(srcdir)/Modules/_multiprocessing # -lrt # _posixshmem
+
# The _tkinter module.
#
# The command for _tkinter is long and site specific. Please