Skip to content

Commit 5d48629

Browse files
committed
Fixes to emcc to make autoconf enable shared objs
When using emcc as a linker, autoconf disables shared object support. This is because it expects the text returned by the -v and --help options to match certain things that GNU ld prints. Specifically it expects the output of emcc -v to include the word 'GNU' and the output of emcc -v to match the regexp ': supported targets.* elf' Modified the messages returned by emcc for these options to make autoconf happy.
1 parent 98d730f commit 5d48629

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

emcc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,12 @@ or LLVM assembly files in human-readable form.
374374
emcc is affected by several environment variables. For details, view
375375
the source of emcc (search for 'os.environ').
376376
377+
emcc: supported targets: llvm bitcode, javascript, NOT elf
378+
(autoconf likes to see elf above to enable shared object support)
377379
''' % (this, this, this)
378380
exit(0)
379381
elif len(sys.argv) == 2 and sys.argv[1] == '-v': # -v with no inputs
380-
print 'emcc (Emscripten GCC-like replacement) 2.0'
382+
print 'emcc (Emscripten GCC-like replacement + linker emulating GNU ld ) 2.0'
381383
exit(subprocess.call([shared.CLANG, '-v']))
382384

383385
def is_minus_s_for_emcc(newargs,i):

0 commit comments

Comments
 (0)