void-packages/srcpkgs/llvm/files/patches/compiler-rt/compiler-rt-002-musl-no-dlvsym.patch
Christian Neukirchen dffb85bee2 llvm: update to 3.8.0.
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.
2016-03-10 16:53:09 +01:00

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);
}