Build scripts: actually disable dynamic nss

This commit is contained in:
SChernykh
2025-07-03 13:01:51 +02:00
parent 8c56e5f079
commit e4402845e1
3 changed files with 28 additions and 8 deletions

View File

@@ -108,6 +108,12 @@ extern "C" void __asan_unpoison_memory_region(void const volatile* addr, size_t
#define ASAN_UNPOISON_MEMORY_REGION(addr, size)
#endif
#ifdef HAVE_NSS_MODULE_DISABLE_LOADING
extern "C" void __nss_module_disable_loading();
#else
#define __nss_module_disable_loading()
#endif
namespace p2pool {
constexpr size_t HASH_SIZE = 32;

View File

@@ -265,6 +265,8 @@ int main(int argc, char* argv[])
SymInitialize(GetCurrentProcess(), NULL, TRUE);
#endif
__nss_module_disable_loading();
memory_tracking_start();
// Create default loop here