[HTML5] Fix build for recent emscripten versions.

Library suffix should be `.a`, the `EXTRA_` in
`EXTRA_EXPORTED_RUNTIME_METHODS` is deprecated.
This commit is contained in:
Fabio Alessandrelli 2021-04-30 07:40:10 +02:00
parent 3f5c106e64
commit b0f6dec02e

View file

@ -172,7 +172,7 @@ def configure(env):
# Program() output consists of multiple files, so specify suffixes manually at builder. # Program() output consists of multiple files, so specify suffixes manually at builder.
env["PROGSUFFIX"] = "" env["PROGSUFFIX"] = ""
env["LIBPREFIX"] = "lib" env["LIBPREFIX"] = "lib"
env["LIBSUFFIX"] = ".bc" env["LIBSUFFIX"] = ".a"
env["LIBPREFIXES"] = ["$LIBPREFIX"] env["LIBPREFIXES"] = ["$LIBPREFIX"]
env["LIBSUFFIXES"] = ["$LIBSUFFIX"] env["LIBSUFFIXES"] = ["$LIBSUFFIX"]
@ -226,8 +226,8 @@ def configure(env):
# Allow use to take control of swapping WebGL buffers. # Allow use to take control of swapping WebGL buffers.
env.Append(LINKFLAGS=["-s", "OFFSCREEN_FRAMEBUFFER=1"]) env.Append(LINKFLAGS=["-s", "OFFSCREEN_FRAMEBUFFER=1"])
# callMain for manual start. # callMain for manual start, cwrap for the mono version.
env.Append(LINKFLAGS=["-s", "EXTRA_EXPORTED_RUNTIME_METHODS=['callMain','cwrap']"]) env.Append(LINKFLAGS=["-s", "EXPORTED_RUNTIME_METHODS=['callMain','cwrap']"])
# Add code that allow exiting runtime. # Add code that allow exiting runtime.
env.Append(LINKFLAGS=["-s", "EXIT_RUNTIME=1"]) env.Append(LINKFLAGS=["-s", "EXIT_RUNTIME=1"])