2022-06-05 03:05:04 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2022-01-11 01:46:43 -07:00
|
|
|
From: Andrew Kaster <akaster@serenityos.org>
|
|
|
|
Date: Tue, 11 Jan 2022 01:04:20 -0700
|
2022-06-05 03:05:04 +02:00
|
|
|
Subject: [PATCH] Stub out a definition of RTLD_NOLOAD
|
2022-01-11 01:46:43 -07:00
|
|
|
|
2022-01-23 18:13:05 -07:00
|
|
|
SerenityOS's DynamicLoader doesn't support this flag. However, we won't
|
2022-01-11 01:46:43 -07:00
|
|
|
be dynamically loading any tbb extensions for the static library build
|
|
|
|
mold uses, so we can just define it as a no-op as the code paths that
|
|
|
|
use it will never be used.
|
|
|
|
---
|
|
|
|
third-party/tbb/src/tbb/dynamic_link.cpp | 1 +
|
|
|
|
1 file changed, 1 insertion(+)
|
|
|
|
|
|
|
|
diff --git a/third-party/tbb/src/tbb/dynamic_link.cpp b/third-party/tbb/src/tbb/dynamic_link.cpp
|
2022-10-02 21:01:33 -06:00
|
|
|
index 91941adab7d4a73699784aed0d896ff32125b8e0..dddbbe128dd92c860527ae7f8befb105690a81f2 100644
|
2022-01-11 01:46:43 -07:00
|
|
|
--- a/third-party/tbb/src/tbb/dynamic_link.cpp
|
|
|
|
+++ b/third-party/tbb/src/tbb/dynamic_link.cpp
|
|
|
|
@@ -53,6 +53,7 @@
|
|
|
|
#pragma weak dlclose
|
|
|
|
#endif /* __TBB_WEAK_SYMBOLS_PRESENT && !__TBB_DYNAMIC_LOAD_ENABLED */
|
|
|
|
|
|
|
|
+#define RTLD_NOLOAD 0
|
|
|
|
|
|
|
|
#define __USE_STATIC_DL_INIT ( !__ANDROID__ )
|
|
|
|
|