diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-03-15 05:02:20 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2016-03-15 05:02:20 +0000 |
commit | efd9112095b216b5fd20523147650b0f4147e62f (patch) | |
tree | 7a5fa47d5a3e8b35ab9d009bc9c3bff3f08e3cb8 /recipes-devtools/clang/files/0001-Use-__GLIBC__-to-differentiate-glibc-like-libc-on-li.patch | |
parent | 3d92b955605420840c4925b590eb66e2d42237a4 (diff) | |
download | meta-clang-efd9112095b216b5fd20523147650b0f4147e62f.tar.gz |
libcxx,libcxxabi: Fix build on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools/clang/files/0001-Use-__GLIBC__-to-differentiate-glibc-like-libc-on-li.patch')
-rw-r--r-- | recipes-devtools/clang/files/0001-Use-__GLIBC__-to-differentiate-glibc-like-libc-on-li.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/recipes-devtools/clang/files/0001-Use-__GLIBC__-to-differentiate-glibc-like-libc-on-li.patch b/recipes-devtools/clang/files/0001-Use-__GLIBC__-to-differentiate-glibc-like-libc-on-li.patch new file mode 100644 index 0000000..dc06ddd --- /dev/null +++ b/recipes-devtools/clang/files/0001-Use-__GLIBC__-to-differentiate-glibc-like-libc-on-li.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From f85abde580d2ba399bfc7538a28f7b6f96912bc6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 15 Mar 2016 03:10:42 +0000 | ||
4 | Subject: [PATCH] Use __GLIBC__ to differentiate glibc-like libc on linux | ||
5 | |||
6 | glibc/uclibc define __GLIBC_PREREQ but musl does not therefore we need | ||
7 | to check if its on glibc system before using it | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | include/__config | 6 +++--- | ||
12 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
13 | |||
14 | diff --git a/include/__config b/include/__config | ||
15 | index db5a832..0859b5f 100644 | ||
16 | --- a/include/__config | ||
17 | +++ b/include/__config | ||
18 | @@ -392,15 +392,15 @@ typedef __char32_t char32_t; | ||
19 | #elif defined(__ANDROID__) | ||
20 | #define _LIBCPP_HAS_QUICK_EXIT | ||
21 | #elif defined(__linux__) | ||
22 | -#if !defined(_LIBCPP_HAS_MUSL_LIBC) | ||
23 | +#if defined(__GLIBC__) | ||
24 | # include <features.h> | ||
25 | -#if __GLIBC_PREREQ(2, 15) | ||
26 | +#if __GLIBC_PREREQ(2, 15) | ||
27 | #define _LIBCPP_HAS_QUICK_EXIT | ||
28 | #endif | ||
29 | #if __GLIBC_PREREQ(2, 17) | ||
30 | #define _LIBCPP_HAS_C11_FEATURES | ||
31 | #endif | ||
32 | -#else // defined(_LIBCPP_HAS_MUSL_LIBC) | ||
33 | +#else // defined(__GLIBC__) | ||
34 | #define _LIBCPP_HAS_QUICK_EXIT | ||
35 | #define _LIBCPP_HAS_C11_FEATURES | ||
36 | #endif | ||
37 | -- | ||
38 | 1.9.1 | ||
39 | |||