File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ embuilder build zlib bzip2
12
12
13
13
pushd cpython/builddir/host
14
14
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)
16
16
ln -sfr Modules/Setup.stdlib Modules/Setup.local
17
17
export FREEZE_MODULE=../build/Programs/_freeze_module
18
18
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 ../..
47
47
mkdir -p lib/python3.11/lib-dynload
48
48
touch lib/python3.11/lib-dynload/.gitignore
49
49
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
51
51
popd
You can’t perform that action at this time.
0 commit comments