asmjs: avoid explicitly linking SDL2_ttf.

It appears that it is sufficient to include `-s USE_SDL_TTF=2`, and
emcc links in the SDL2_tff library, and it does not like attempts to
link this twice.
This commit is contained in:
68bit 2019-08-29 00:06:37 +10:00 committed by Justin Kerk
parent 6d76d3f8f8
commit 5c482945c6

View File

@ -38,7 +38,7 @@ function maintargetosdoptions(_target,_subtarget)
}
end
if BASE_TARGETOS=="unix" and _OPTIONS["targetos"]~="macosx" and _OPTIONS["targetos"]~="android" then
if BASE_TARGETOS=="unix" and _OPTIONS["targetos"]~="macosx" and _OPTIONS["targetos"]~="android" and _OPTIONS["targetos"]~="asmjs" then
links {
"SDL2_ttf",
}