From 81507c024e6904054831ed766416ea831f9b9744 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 20 Jul 2017 13:08:11 -0700 Subject: libcxx: Do not include xlocale.h Thsi file is removed from glibc >= 2.26 Fixes #36 Signed-off-by: Khem Raj --- ...-libcxx-Do-not-include-xlocale.h-on-glibc.patch | 30 ++++++++++++++++++++++ recipes-devtools/clang/common.inc | 1 + 2 files changed, 31 insertions(+) create mode 100644 recipes-devtools/clang/clang/0002-libcxx-Do-not-include-xlocale.h-on-glibc.patch diff --git a/recipes-devtools/clang/clang/0002-libcxx-Do-not-include-xlocale.h-on-glibc.patch b/recipes-devtools/clang/clang/0002-libcxx-Do-not-include-xlocale.h-on-glibc.patch new file mode 100644 index 0000000..ed48ec0 --- /dev/null +++ b/recipes-devtools/clang/clang/0002-libcxx-Do-not-include-xlocale.h-on-glibc.patch @@ -0,0 +1,30 @@ +From 906b5542f9b2c608ae1782b1c1c2dcd710fb84c8 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 20 Jul 2017 12:58:30 -0700 +Subject: [PATCH] libcxx: Do not include xlocale.h on glibc + +xlocale.h has been removed from glibc 2.26 +see +https://sourceware.org/glibc/wiki/Release/2.26#Packaging_Changes + +Signed-off-by: Khem Raj +--- + include/__locale | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/__locale b/include/__locale +index 766842294..91ed9e709 100644 +--- a/include/__locale ++++ b/include/__locale +@@ -34,7 +34,7 @@ + # include + #elif defined(_NEWLIB_VERSION) + # include +-#elif (defined(__GLIBC__) || defined(__APPLE__) || defined(__FreeBSD__) \ ++#elif (defined(__APPLE__) || defined(__FreeBSD__) \ + || defined(__EMSCRIPTEN__) || defined(__IBMCPP__)) + # include + #elif defined(__Fuchsia__) +-- +2.13.3 + diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc index 0f01131..62af42b 100644 --- a/recipes-devtools/clang/common.inc +++ b/recipes-devtools/clang/common.inc @@ -25,6 +25,7 @@ LIBCXXABIPATCHES ="\ # libc++ patches LIBCXXPATCHES = "\ + file://0002-libcxx-Do-not-include-xlocale.h-on-glibc.patch;patchdir=projects/libcxx \ " LIBCXXPATCHES_append_libc-musl = "\ -- cgit v1.2.3-54-g00ecf