Closed sbc100 closed 4 years ago
I think we may need to remove -lSDL_image
in the makefile here. But maybe we should fix emcc to ignore that?
(it worked on fastcomp somehow in the past, but I think we made -lX
stricter at some point)
I see.. I had no idea that emmake
did that. I guess this change is not needed after all.
Instead perhaps lets give a error saying "please run with emmake" if EMSCRIPTEN is not found?
However emmake is designed to override CC and CXX etc... its designed for makefiles that are not necarrily aware of emscripten at all right? At keast it seens like setting CXX = emcc is redundant when using emmake.
I can't see any change what would have allowed -lSDL_image
with fastcomp. I agree we should accept it if we used to.. we should look into how that ever works,
However emmake is designed to override CC and CXX etc... its designed for makefiles that are not necarrily aware of emscripten at all right?
Correct, yeah. But it also sets EMSCRIPTEN
which can be useful too, even if not the main intended goal.
Overall though, I don't have a clear idea in my head of the "right" way to do this. Maybe using EMSCRIPTEN is wrong. I trust your views on this type of thing more than my own.
OK.. I think this is better PTAL.
Can you land? I don't have write access here.
I'm still seing a link failure:
emcc: error: emcc: cannot find library "SDL_image"
How did that work previously?