Use cmake to build. This is the favored method of building by upstream. Consequences: - Build lld again - Build LLVMgold - Enable sanitizers on non-musl platforms - Remove llvm-doc (not built by cmake, quite useless) - Use versioned binary names - Could use ninja with make_cmd=ninja and configure -Gninja, but we stick to make for now. Also cleaned up and fixed remaining patches.
12 lines
462 B
Diff
12 lines
462 B
Diff
--- a/lib/interception/interception_linux.cc
|
|
+++ b/lib/interception/interception_linux.cc
|
|
@@ -24,7 +24,7 @@ bool GetRealFunctionAddress(const char *func_name, uptr *func_addr,
|
|
return real == wrapper;
|
|
}
|
|
|
|
-#if !defined(__ANDROID__) // android does not have dlvsym
|
|
+#if defined(__GLIBC__) // !defined(__ANDROID__) // android does not have dlvsym
|
|
void *GetFuncAddrVer(const char *func_name, const char *ver) {
|
|
return dlvsym(RTLD_NEXT, func_name, ver);
|
|
}
|