File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 22
22
23
23
24
24
# Build modules statically or as shared extensions
25
- *shared*
26
- # *static *
25
+ # *shared* / *static *
26
+ *@MODULE_BUILDTYPE@ *
27
27
28
28
29
29
# ###########################################################################
Original file line number Diff line number Diff line change @@ -770,6 +770,7 @@ MODULE_TIME_FALSE
770
770
MODULE_TIME_TRUE
771
771
MODULE__IO_FALSE
772
772
MODULE__IO_TRUE
773
+ MODULE_BUILDTYPE
773
774
TEST_MODULES
774
775
LIBRARY_DEPS
775
776
STATIC_LIBPYTHON
@@ -21012,6 +21013,15 @@ case $ac_sys_system in #(
21012
21013
;;
21013
21014
esac
21014
21015
21016
+ case $host_cpu in #(
21017
+ wasm32|wasm64) :
21018
+ MODULE_BUILDTYPE=static ;; #(
21019
+ *) :
21020
+ MODULE_BUILDTYPE=${MODULE_BUILDTYPE:-shared}
21021
+ ;;
21022
+ esac
21023
+
21024
+
21015
21025
21016
21026
MODULE_BLOCK=
21017
21027
Original file line number Diff line number Diff line change @@ -6185,6 +6185,13 @@ AS_CASE([$ac_sys_system],
6185
6185
[ py_stdlib_not_available="_scproxy"]
6186
6186
)
6187
6187
6188
+ dnl Default value for Modules/Setup.stdlib build type
6189
+ AS_CASE ( [ $host_cpu] ,
6190
+ [ wasm32|wasm64] , [ MODULE_BUILDTYPE=static] ,
6191
+ [ MODULE_BUILDTYPE=${MODULE_BUILDTYPE:-shared}]
6192
+ )
6193
+ AC_SUBST ( [ MODULE_BUILDTYPE] )
6194
+
6188
6195
dnl _MODULE_BLOCK_ADD([VAR], [VALUE])
6189
6196
dnl internal: adds $1=quote($2) to MODULE_BLOCK
6190
6197
AC_DEFUN ( [ _MODULE_BLOCK_ADD] , [ AS_VAR_APPEND ( [ MODULE_BLOCK] , [ "$1 =_AS_QUOTE([ $2 ] )$as_nl"] ) ] )
You can’t perform that action at this time.
0 commit comments