I'm not 100% sure what the problem is but emcc 6.0.0 works fine for me if I revert #25930. The problem is that -Bstatic is passed when I'm trying to link a static library.
I think the problem is that the condition here is wrong:
if settings.FAKE_DYLIBS or (not settings.MAIN_MODULE and not settings.SIDE_MODULE):
cmd.append('-Bstatic')
else:
# wasm-ld still defaults to static linking by default. If that ever changes, we can remove this line.
cmd.append('-Bdynamic')
|
|
|
if settings.FAKE_DYLIBS or (not settings.MAIN_MODULE and not settings.SIDE_MODULE): |
|
cmd.append('-Bstatic') |
|
else: |
|
# wasm-ld still defaults to static linking by default. If that ever changes, we can remove this line. |
|
cmd.append('-Bdynamic') |
I'm not 100% sure what the problem is but emcc 6.0.0 works fine for me if I revert #25930. The problem is that
-Bstaticis passed when I'm trying to link a static library.I think the problem is that the condition here is wrong:
emscripten/tools/building.py
Lines 167 to 172 in 6d8b2c1