aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-05-06 16:10:45 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-05-06 16:10:45 -0700
commitb08947097b061a1b6dc2682c1beace03942d86fd (patch)
treed9ffd5256449eecab102e769c0dfec96e7940625
parentbe0fb5cc46392c203c5c7885efdfe4f0cd579751 (diff)
fix sdl inclusion
-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')