do not try to use xlocale.h

This commit is contained in:
Tom Callaway 2017-06-23 12:53:10 -04:00
parent 624e291c1b
commit 6f7693e6ac
1 changed files with 5 additions and 0 deletions

View File

@ -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