From 6f7693e6acf135098c576b1c8ab201fe467793c7 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Fri, 23 Jun 2017 12:53:10 -0400 Subject: [PATCH] do not try to use xlocale.h --- libcxx.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libcxx.spec b/libcxx.spec index 9c5e626..7cf9cf5 100644 --- a/libcxx.spec +++ b/libcxx.spec @@ -9,6 +9,7 @@ Summary: C++ standard library targeting C++11 License: MIT or NCSA URL: http://libcxx.llvm.org/ Source0: http://llvm.org/releases/%{version}/libcxx-%{version}.src.tar.xz +Patch0: libcxx-4.0.1-noxlocale.patch BuildRequires: clang llvm-devel cmake llvm-static %if %{bootstrap} < 1 BuildRequires: libcxxabi-devel @@ -42,6 +43,10 @@ Summary: Static libraries for libcxx %prep %setup -q -n %{name}-%{version}.src +# glibc-2.25.90-8 or newer no longer includes xlocale.h +%if 0%{?fedora} >= 27 +%patch0 -p1 -b .noxlocale +%endif %build mkdir _build