aboutsummaryrefslogtreecommitdiffstats
path: root/main/llvm/compiler-rt-3.6-musl-no-dlvsym.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-05-22 13:43:22 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-05-22 13:43:22 +0000
commit70622e24effd147a1d3e6206607f73ccdba33e8f (patch)
tree9f6ad37ec2977a564c47819340add467227c9dc0 /main/llvm/compiler-rt-3.6-musl-no-dlvsym.patch
parent95623fb7c14e2129b8e4f39e947d99dc85d3e158 (diff)
downloadaports-70622e24effd147a1d3e6206607f73ccdba33e8f.tar.bz2
aports-70622e24effd147a1d3e6206607f73ccdba33e8f.tar.xz
Revert "main/llvm: update patchset, switch to cmake, perform two-stage build with a minimal bootstrap compile of clang, add clang extras, update package list to split out clang documentation"
Diffstat (limited to 'main/llvm/compiler-rt-3.6-musl-no-dlvsym.patch')
-rw-r--r--main/llvm/compiler-rt-3.6-musl-no-dlvsym.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/main/llvm/compiler-rt-3.6-musl-no-dlvsym.patch b/main/llvm/compiler-rt-3.6-musl-no-dlvsym.patch
new file mode 100644
index 0000000000..444f4e073b
--- /dev/null
+++ b/main/llvm/compiler-rt-3.6-musl-no-dlvsym.patch
@@ -0,0 +1,19 @@
+diff --git a/lib/interception/interception_linux.cc b/lib/interception/interception_linux.cc
+index 6e908ac..7fcf2a6 100644
+--- a/lib/interception/interception_linux.cc
++++ b/lib/interception/interception_linux.cc
+@@ -21,13 +21,13 @@ namespace __interception {
+ bool GetRealFunctionAddress(const char *func_name, uptr *func_addr,
+ uptr real, uptr wrapper) {
+ *func_addr = (uptr)dlsym(RTLD_NEXT, func_name);
+ return real == wrapper;
+ }
+
+-#if !defined(__ANDROID__) // android does not have dlvsym
++#if 0 // !defined(__ANDROID__) // android does not have dlvsym
+ void *GetFuncAddrVer(const char *func_name, const char *ver) {
+ return dlvsym(RTLD_NEXT, func_name, ver);
+ }
+ #endif // !defined(__ANDROID__)
+
+ } // namespace __interception