aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-10-15 16:31:46 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-10-17 12:43:59 -0700
commit844faf36ebb89698bb6db042f366ec851b89ddbe (patch)
treef8a05408e1c6f975b98f04c49c5381a2fad0057e /emcc
parent9c2c84bfc040461ee7d2ef93b294fc2c9459c48c (diff)
do not include C library in shared library 2
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc3
1 files changed, 2 insertions, 1 deletions
diff --git a/emcc b/emcc
index 68f5cc35..ae72039a 100755
--- a/emcc
+++ b/emcc
@@ -815,7 +815,8 @@ try:
extra_files_to_link = []
- if not LEAVE_INPUTS_RAW and not AUTODEBUG:
+ if not LEAVE_INPUTS_RAW and not AUTODEBUG and \
+ not shared.Settings.BUILD_AS_SHARED_LIB == 2: # shared lib 2 use the library in the parent
# Check if we need to include some libraries that we compile. (We implement libc ourselves in js, but
# compile a malloc implementation and stdlibc++.)
# Note that we assume a single symbol is enough to know if we have/do not have dlmalloc etc. If you