diff --git a/src/dist/fheroes2-ems/Makefile b/src/dist/fheroes2-ems/Makefile index 4a0d117089..428a99174d 100644 --- a/src/dist/fheroes2-ems/Makefile +++ b/src/dist/fheroes2-ems/Makefile @@ -42,7 +42,7 @@ fheroes2.js: $(notdir $(patsubst %.cpp, %.o, $(SOURCES))) $(DEPLIBS) fheroes2.module.js: $(notdir $(patsubst %.cpp, %.o, $(SOURCES))) $(DEPLIBS) $(CXX) -o $@ $^ $(LIBS) $(LDFLAGS) \ -sMODULARIZE \ - -sEXPORTED_RUNTIME_METHODS=FS,ENV,noExitRuntime,addOnExit,run,callMain \ + -sEXPORT_ALL \ -sEXPORT_NAME=fheroes2 %.o: %.cpp