mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
compilation fixes for Emscripten, part 2
This commit is contained in:
@@ -14,9 +14,11 @@ export CC="emcc"
|
||||
export CXX="em++"
|
||||
export LD="emcc"
|
||||
export LD_CXX="em++"
|
||||
export AR="emar"
|
||||
export RANLIB="emranlib"
|
||||
export CFLAGS="-DEMTERPRETER_SYNC"
|
||||
export CXXFLAGS="-DEMSCRIPTEN=1 -DEMTERPRETER_SYNC -s USE_ZLIB=1 -s USE_SDL=2 -s USE_FREETYPE=1"
|
||||
export LDFLAGS="-DEMSCRIPTEN=1 -DEMTERPRETER_SYNC -s USE_ZLIB=1 -s USE_SDL=2 -s USE_FREETYPE=1 -s TOTAL_MEMORY=134217728 -s ASYNCIFY -s ERROR_ON_UNDEFINED_SYMBOLS=0"
|
||||
export CXXFLAGS="-DEMSCRIPTEN=1 -DEMTERPRETER_SYNC -s USE_ZLIB=1 -s USE_SDL=2"
|
||||
export LDFLAGS="-DEMSCRIPTEN=1 -DEMTERPRETER_SYNC -s USE_ZLIB=1 -s USE_SDL=2 -s FORCE_FILESYSTEM=1 -s ALLOW_MEMORY_GROWTH=1 -s TOTAL_MEMORY=100663296 -s ASYNCIFY -s ERROR_ON_UNDEFINED_SYMBOLS=0"
|
||||
|
||||
# where are we?
|
||||
top=`pwd`
|
||||
@@ -30,8 +32,8 @@ chmod +x configure
|
||||
|
||||
# build command borrowed from Yksoft1 vanilla DOSBox-X port with modifications
|
||||
./configure \
|
||||
--host=x86_64-linux --disable-fpu-x86 --disable-dynamic-core \
|
||||
--enable-sdl2 --with-sdl-prefix=$EMSDK/upstream/emscripten/system \
|
||||
--host=x86_64-linux --disable-dynrec --disable-dynamic-x86 --disable-fpu-x86 --disable-dynamic-core \
|
||||
--enable-sdl2 --with-sdl-prefix=$EMSDK/upstream/emscripten/system --disable-screenshots \
|
||||
--disable-opengl --disable-mt32 --enable-emscripten --enable-force-menu-sdldraw --disable-x11 \
|
||||
--disable-avcodec --disable-libslirp --disable-libfluidsynth "$@"
|
||||
--disable-avcodec --disable-libslirp --disable-libfluidsynth --disable-freetype "$@"
|
||||
make -j6 || exit 1
|
||||
|
Reference in New Issue
Block a user