aboutsummaryrefslogtreecommitdiffstats
path: root/community/llvm3.9/llvm-fix-DynamicLibrary-to-build-with-musl-libc.patch
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2019-08-09 15:14:59 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-08-11 17:26:20 -0300
commit8cfd3538acb4e2fcaa7aa9e6ad90e8c342bdc0f6 (patch)
treea4a06930da4100ea3844ded19d1ae126dc445aa2 /community/llvm3.9/llvm-fix-DynamicLibrary-to-build-with-musl-libc.patch
parent6b24b21a0b36fb04b962e46fe2809a54d0e47b2d (diff)
downloadaports-8cfd3538acb4e2fcaa7aa9e6ad90e8c342bdc0f6.tar.bz2
aports-8cfd3538acb4e2fcaa7aa9e6ad90e8c342bdc0f6.tar.xz
unmaintained/llvm3.9: move from community
Diffstat (limited to 'community/llvm3.9/llvm-fix-DynamicLibrary-to-build-with-musl-libc.patch')
-rw-r--r--community/llvm3.9/llvm-fix-DynamicLibrary-to-build-with-musl-libc.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/community/llvm3.9/llvm-fix-DynamicLibrary-to-build-with-musl-libc.patch b/community/llvm3.9/llvm-fix-DynamicLibrary-to-build-with-musl-libc.patch
deleted file mode 100644
index d5d7f07b5e..0000000000
--- a/community/llvm3.9/llvm-fix-DynamicLibrary-to-build-with-musl-libc.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From d12ecb83d01dcb580dd94f4d57828f33d3eb4c35 Mon Sep 17 00:00:00 2001
-From: Natanael Copa <ncopa@alpinelinux.org>
-Date: Thu, 18 Feb 2016 15:33:21 +0100
-Subject: [PATCH 3/3] Fix DynamicLibrary to build with musl libc
-
-stdin/out/err is part of the libc and not the kernel so we check for the
-specific libc that does the unexpected instead of linux.
-
-This is needed for making it build with musl libc.
----
- lib/Support/DynamicLibrary.cpp | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/lib/Support/DynamicLibrary.cpp b/lib/Support/DynamicLibrary.cpp
-index 9a7aeb5..0c1c8f8 100644
---- a/lib/Support/DynamicLibrary.cpp
-+++ b/lib/Support/DynamicLibrary.cpp
-@@ -140,10 +140,10 @@ void* DynamicLibrary::SearchForAddressOfSymbol(const char *symbolName) {
- #define EXPLICIT_SYMBOL(SYM) \
- if (!strcmp(symbolName, #SYM)) return &SYM
-
--// On linux we have a weird situation. The stderr/out/in symbols are both
-+// On GNU libc we have a weird situation. The stderr/out/in symbols are both
- // macros and global variables because of standards requirements. So, we
- // boldly use the EXPLICIT_SYMBOL macro without checking for a #define first.
--#if defined(__linux__) and !defined(__ANDROID__)
-+#if defined(__GLIBC__)
- {
- EXPLICIT_SYMBOL(stderr);
- EXPLICIT_SYMBOL(stdout);
---
-2.7.3
-