diff --git a/src/library_dylink.js b/src/library_dylink.js index 6ff94267606f6..3e33c9ddc6f67 100644 --- a/src/library_dylink.js +++ b/src/library_dylink.js @@ -1075,6 +1075,9 @@ var LibraryDylink = { $loadDylibs__internal: true, $loadDylibs__deps: ['$loadDynamicLibrary', '$reportUndefinedSymbols'], $loadDylibs: () => { +#if PTHREADS + if (ENVIRONMENT_IS_PTHREAD) return; +#endif if (!dynamicLibraries.length) { #if DYLINK_DEBUG dbg('loadDylibs: no libraries to preload');