|
3 | 3 | //
|
4 | 4 | // ==========================================================================
|
5 | 5 |
|
| 6 | +var dlopenMissingError = "To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking" |
| 7 | + |
6 | 8 | var LibraryDylink = {
|
7 | 9 | #if RELOCATABLE
|
8 | 10 | $resolveGlobalSymbol__deps: ['$asmjsMangle'],
|
@@ -182,14 +184,19 @@ var LibraryDylink = {
|
182 | 184 | #endif
|
183 | 185 |
|
184 | 186 | #if MAIN_MODULE == 0
|
| 187 | +#if !ALLOW_UNIMPLEMENTED_SYSCALLS |
| 188 | + _dlopen_js__deps: [function() { error(dlopenMissingError); }], |
| 189 | + _emscripten_dlopen_js__deps: [function() { error(dlopenMissingError); }], |
| 190 | + _dlsym_js__deps: [function() { error(dlopenMissingError); }], |
| 191 | +#endif |
185 | 192 | _dlopen_js: function(filename, flag) {
|
186 |
| - abort("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking"); |
| 193 | + abort(dlopenMissingError); |
187 | 194 | },
|
188 | 195 | _emscripten_dlopen_js: function(filename, flags, user_data, onsuccess, onerror) {
|
189 |
| - abort("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking"); |
| 196 | + abort(dlopenMissingError); |
190 | 197 | },
|
191 | 198 | _dlsym_js: function(handle, symbol) {
|
192 |
| - abort("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking"); |
| 199 | + abort(dlopenMissingError); |
193 | 200 | },
|
194 | 201 | #else // MAIN_MODULE != 0
|
195 | 202 | // dynamic linker/loader (a-la ld.so on ELF systems)
|
|
0 commit comments