Skip to content

Commit 0664054

Browse files
committed
Merge branch 'main' of github.com:ethanhs/python-wasm into rmmod
2 parents bd358d4 + ff06c0d commit 0664054

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build-python-host-emscripten.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ embuilder build zlib bzip2
1212

1313
pushd cpython/builddir/host
1414
cp ../../../config.site-wasm config.site-wasm
15-
CONFIG_SITE=config.site-wasm READELF=true ZLIB_CFLAGS="-s USE_ZLIB" emconfigure ../../configure -C --without-pymalloc --enable-big-digits=30 --with-pydebug --with-suffix=.wasm --with-ensurepip=no --disable-ipv6 --host=wasm32-unknown-emscripten --build=$(../../config.guess)
15+
CONFIG_SITE=config.site-wasm READELF=true ZLIB_LIBS="-s USE_ZLIB" BZIP2_LIBS="-s USE_BZIP2" emconfigure ../../configure -C --without-pymalloc --enable-big-digits=30 --with-pydebug --with-suffix=.wasm --with-ensurepip=no --disable-ipv6 --host=wasm32-unknown-emscripten --build=$(../../config.guess)
1616
ln -sfr Modules/Setup.stdlib Modules/Setup.local
1717
export FREEZE_MODULE=../build/Programs/_freeze_module
1818
emmake make CROSS_COMPILE=yes FREEZE_MODULE=../build/Programs/_freeze_module PYTHON_FOR_BUILD=../build/python _PYTHON_HOST_PLATFORM=wasm32-unknown-emscripten -j$(nproc)
@@ -47,5 +47,5 @@ cd ../..
4747
mkdir -p lib/python3.11/lib-dynload
4848
touch lib/python3.11/lib-dynload/.gitignore
4949
popd
50-
emcc -Os -o python.html Programs/python.o libpython3.11d.a Modules/_decimal/libmpdec/libmpdec.a Modules/expat/libexpat.a -ldl -lm -s USE_ZLIB --preload-file ../usr
50+
emcc -Os -o python.html Programs/python.o libpython3.11d.a Modules/_decimal/libmpdec/libmpdec.a Modules/expat/libexpat.a -ldl -lm -s USE_ZLIB -s USE_BZIP2 --preload-file ../usr
5151
popd

0 commit comments

Comments
 (0)