aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xemcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/emcc b/emcc
index 30cc6873..8c528a46 100755
--- a/emcc
+++ b/emcc
@@ -1333,7 +1333,7 @@ try:
return build_libcxx(os.path.join('system', 'lib'), 'sdl.bc', ['sdl.cpp'])
def apply_sdl(need):
- return 'malloc' not in all_needed or 'free' not in all_needed
+ return 'SDL_Init' in all_needed and ('malloc' not in all_needed or 'free' not in all_needed)
# Settings this in the environment will avoid checking dependencies and make building big projects a little faster
force = os.environ.get('EMCC_FORCE_STDLIBS')