diff options
author | Andrew Kaster <akaster@serenityos.org> | 2022-10-02 21:01:33 -0600 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-03 10:01:06 +0100 |
commit | 32c9be30dc4a34394988dfaa81d46c63d07fde70 (patch) | |
tree | a074cfa424a2e34b960c952b29b8d209675b8545 /Ports/mold/patches/0003-Stub-out-a-definition-of-RTLD_NOLOAD.patch | |
parent | 376425639d032b29a42ca5354eb11a08ce8b991b (diff) | |
download | serenity-32c9be30dc4a34394988dfaa81d46c63d07fde70.zip |
Ports/mold: Update to 1.5.1 and use CMake instead of Makefile
Per the release notes for 1.5.0, the CMake build is preferred going
forward. This lets us drop some Makefile patches and pass them as CMake
options instead, with the exception of disabling mold-wrapper.so.
Diffstat (limited to 'Ports/mold/patches/0003-Stub-out-a-definition-of-RTLD_NOLOAD.patch')
-rw-r--r-- | Ports/mold/patches/0003-Stub-out-a-definition-of-RTLD_NOLOAD.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Ports/mold/patches/0003-Stub-out-a-definition-of-RTLD_NOLOAD.patch b/Ports/mold/patches/0003-Stub-out-a-definition-of-RTLD_NOLOAD.patch new file mode 100644 index 0000000000..70e044981b --- /dev/null +++ b/Ports/mold/patches/0003-Stub-out-a-definition-of-RTLD_NOLOAD.patch @@ -0,0 +1,25 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Andrew Kaster <akaster@serenityos.org> +Date: Tue, 11 Jan 2022 01:04:20 -0700 +Subject: [PATCH] Stub out a definition of RTLD_NOLOAD + +SerenityOS's DynamicLoader doesn't support this flag. However, we won't +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 +index 91941adab7d4a73699784aed0d896ff32125b8e0..dddbbe128dd92c860527ae7f8befb105690a81f2 100644 +--- 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__ ) + |