File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ emscripten () {
96
96
# Modules/Setup.local
97
97
echo ' *static*' > Modules/Setup.local
98
98
cat $SETUPLOCAL >> Modules/Setup.local
99
+ emmake make Makefile
99
100
# drop -I/-L/-lz, we USE_ZLIB=1 (keep it in SETUPLOCAL for mock)
100
101
sed -i -e ' s/^\(zlib zlibmodule.c\).*/\1/' Modules/Setup.local
101
102
Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ emscripten () {
62
62
# --disable-ipv6: ?
63
63
# --disable-shared: compile statically for Emscripten perfs + incomplete PIC support
64
64
if [ ! -e config.status ]; then
65
- CONFIG_SITE=../config-emscripten.site BASECFLAGS=' -s USE_ZLIB=1' READELF=true \
65
+ CONFIG_SITE=../config-emscripten.site READELF=true \
66
+ BASECFLAGS=' -s USE_ZLIB=1' LDFLAGS=' -s USE_ZLIB=1' \
66
67
PATH=$BUILD /Python-$VERSION /native:$PATH \
67
68
emconfigure ../configure \
68
69
--host=asmjs-unknown-emscripten --build=$( ../config.guess) \
83
84
cat $SETUPLOCAL >> Modules/Setup.local
84
85
# drop -I/-L/-lz, we USE_ZLIB=1 (keep it in SETUPLOCAL for mock)
85
86
sed -i -e ' s/^\(zlib zlibmodule.c\).*/\1/' Modules/Setup.local
87
+ emmake make Makefile
86
88
# decrease .pyo size by dropping docstrings
87
89
sed -i -e ' /compileall.py/ s/ -O / -OO /' Makefile
88
90
You can’t perform that action at this time.
0 commit comments