From ccee982634e8db5ac3eac63c3befc813c7ebb661 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 26 Oct 2016 09:48:56 +1000 Subject: [PATCH] clang: fixes for build --- clang.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/clang.spec b/clang.spec index 3e74564..e1acdb3 100644 --- a/clang.spec +++ b/clang.spec @@ -14,7 +14,7 @@ BuildRequires: llvm-devel = %{version} BuildRequires: libxml2-devel BuildRequires: llvm-static = %{version} BuildRequires: perl-generators - +BuildRequires: ncurses-devel Requires: %{name}-libs%{?_isa} = %{version}-%{release} # clang requires gcc, clang++ requires libstdc++-devel @@ -79,6 +79,11 @@ cd _build -DCLANG_PLUGIN_SUPPORT:BOOL=ON \ \ -DCLANG_BUILD_EXAMPLES:BOOL=OFF \ +%if 0%{?__isa_bits} == 64 + -DLLVM_LIBDIR_SUFFIX=64 \ +%else + -DLLVM_LIBDIR_SUFFIX= \ +%endif -DLIB_SUFFIX= make %{?_smp_mflags} @@ -118,8 +123,8 @@ rm -vf %{buildroot}%{_datadir}/clang/clang-format-diff.py* %files devel %{_includedir}/clang/ %{_includedir}/clang-c/ +%{_libdir}/cmake/ %dir %{_datadir}/clang/ -%{_datadir}/clang/cmake/ %files analyzer %{_bindir}/scan-view