|
@@ -780,9 +780,15 @@ module _BASE_UNIT: _BARE_UNIT {
|
|
|
when ($OS_EMSCRIPTEN == "yes") {
|
|
|
when ($NOLIBC != "yes") {
|
|
|
PEERDIR+=contrib/restricted/emscripten/include
|
|
|
+ # Important: In arcadia we usually build standalone WASM applications,
|
|
|
+ # so standalone library must go before lib/c in linker command-line.
|
|
|
+ # Emscripten uses two weak definitions for __clock_gettime function,
|
|
|
+ # so linker will pick one from the first library present in command
|
|
|
+ # line.
|
|
|
+ PEERDIR+=contrib/restricted/emscripten/system/lib/standalonewasm
|
|
|
+ PEERDIR+=contrib/restricted/emscripten/system/lib/stubs
|
|
|
PEERDIR+=contrib/restricted/emscripten/system/lib/c
|
|
|
PEERDIR+=contrib/restricted/emscripten/system/lib/dlmalloc
|
|
|
- PEERDIR+=contrib/restricted/emscripten/system/lib/standalonewasm
|
|
|
}
|
|
|
}
|
|
|
|