aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-07-03 16:18:29 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-07-03 16:18:29 -0700
commite6c426b74bfdd16673264e3301dd2535f6fbf448 (patch)
treef138eb313719cf781eed61b35a87c8002311426d /emcc
parent2e570754a50b5ae8bae2bbf3f92c859a3ff13278 (diff)
force-include .a contents when it is the only input aside from linked libraries
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/emcc b/emcc
index 5ce8a3dd..4f2f427d 100755
--- a/emcc
+++ b/emcc
@@ -1413,7 +1413,7 @@ try:
linker_inputs = temp_files + extra_files_to_link
logging.debug('linking: ' + str(linker_inputs))
t0 = time.time()
- shared.Building.link(linker_inputs, in_temp(target_basename + '.bc'))
+ shared.Building.link(linker_inputs, in_temp(target_basename + '.bc'), force_archive_contents = len(input_files) == 1 and temp_files[0].endswith(STATICLIB_SUFFIXES))
t1 = time.time()
logging.debug(' linking took %.2f seconds' % (t1 - t0))
final = in_temp(target_basename + '.bc')