aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-12-24 10:07:25 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-12-24 10:07:25 -0800
commita0ce0dce7d234ec0443849d5222e2dee800ab37f (patch)
treec100259ba69d64761efb34758202aa0cd89e2776 /emcc
parent48dbd4de6e7c02ce3dca15277bdf9e0a9617f5b3 (diff)
properly check for libx.so.1.2.3 types when deciding what to link in statically, and improve testing for that; fixes #1886
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc3
1 files changed, 2 insertions, 1 deletions
diff --git a/emcc b/emcc
index 4803b813..39aa0ced 100755
--- a/emcc
+++ b/emcc
@@ -1132,12 +1132,13 @@ try:
break
if found: break
if found: break
+ if not found: logging.warning('emcc: cannot find library "%s"' % lib)
# If not compiling to JS, then we are compiling to an intermediate bitcode objects or library, so
# ignore dynamic linking, since multiple dynamic linkings can interfere with each other
if not filename_type_suffix(target) in JS_CONTAINING_SUFFIXES or ignore_dynamic_linking:
def check(input_file):
- if input_file.endswith(DYNAMICLIB_ENDINGS):
+ if filename_type_ending(input_file) in DYNAMICLIB_ENDINGS:
if not ignore_dynamic_linking: logging.warning('ignoring dynamic library %s because not compiling to JS or HTML, remember to link it when compiling to JS or HTML at the end' % os.path.basename(input_file))
return False
else: