|
|
ce075fc |
Name: compiler-rt
|
|
|
9c61c87 |
Version: 3.8.0
|
|
|
0df3309 |
Release: 2%{?dist}
|
|
|
ce075fc |
Summary: LLVM "compiler-rt" runtime libraries
|
|
|
ce075fc |
|
|
|
ce075fc |
License: NCSA or MIT
|
|
|
ce075fc |
URL: http://llvm.org
|
|
|
832406b |
Source0: http://llvm.org/releases/%{version}/%{name}-%{version}.src.tar.xz
|
|
|
ce075fc |
|
|
|
ce075fc |
BuildRequires: cmake
|
|
|
ce075fc |
BuildRequires: python
|
|
|
ce075fc |
BuildRequires: llvm-devel = %{version}
|
|
|
11b2c3b |
BuildRequires: llvm-static = %{version}
|
|
|
ce075fc |
|
|
|
ce075fc |
%description
|
|
|
ce075fc |
The compiler-rt project is a part of the LLVM project. It provides
|
|
|
ce075fc |
implementation of the low-level target-specific hooks required by
|
|
|
ce075fc |
code generation, sanitizer runtimes and profiling library for code
|
|
|
ce075fc |
instrumentation, and Blocks C language extension.
|
|
|
ce075fc |
|
|
|
ce075fc |
%prep
|
|
|
832406b |
%setup -q -n %{name}-%{version}.src
|
|
|
ce075fc |
|
|
|
ce075fc |
%build
|
|
|
ce075fc |
mkdir -p _build
|
|
|
ce075fc |
cd _build
|
|
|
ce075fc |
%cmake .. \
|
|
|
ce075fc |
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
ce075fc |
-DLLVM_CONFIG_PATH:FILEPATH=%{_bindir}/llvm-config-%{__isa_bits} \
|
|
|
ce075fc |
\
|
|
|
ce075fc |
-DCOMPILER_RT_INCLUDE_TESTS:BOOL=OFF # could be on?
|
|
|
ce075fc |
|
|
|
ce075fc |
make %{?_smp_mflags}
|
|
|
ce075fc |
|
|
|
ce075fc |
%install
|
|
|
ce075fc |
cd _build
|
|
|
ce075fc |
make install DESTDIR=%{buildroot}
|
|
|
ce075fc |
|
|
|
ce075fc |
# move sanitizer lists to better place
|
|
|
1f875a6 |
mkdir -p %{buildroot}%{_libdir}/clang/%{version}
|
|
|
9c61c87 |
for file in asan_blacklist.txt msan_blacklist.txt dfsan_blacklist.txt cfi_blacklist.txt dfsan_abilist.txt; do
|
|
|
1f875a6 |
mv -v %{buildroot}%{_prefix}/${file} %{buildroot}%{_libdir}/clang/%{version}/ || :
|
|
|
ce075fc |
done
|
|
|
ce075fc |
|
|
|
1f875a6 |
# move sanitizer libs to better place
|
|
|
a889661 |
mkdir -p %{buildroot}%{_libdir}/clang/%{version}/lib
|
|
|
7033c16 |
mv -v %{buildroot}%{_prefix}/lib/linux/libclang_rt* %{buildroot}%{_libdir}/clang/%{version}/lib
|
|
|
0df3309 |
mkdir -p %{buildroot}%{_libdir}/clang/%{version}/lib/linux/
|
|
|
0df3309 |
pushd %{buildroot}%{_libdir}/clang/%{version}/lib
|
|
|
0df3309 |
for i in *.a *.syms *.so; do
|
|
|
0df3309 |
ln -s ../$i linux/$i
|
|
|
0df3309 |
done
|
|
|
1f875a6 |
|
|
|
ce075fc |
%check
|
|
|
ce075fc |
cd _build
|
|
|
ce075fc |
#make check-all
|
|
|
ce075fc |
|
|
|
ce075fc |
%files
|
|
Thierry Vignaud |
d27e752 |
%{_includedir}/*
|
|
|
1f875a6 |
%{_libdir}/clang/%{version}
|
|
|
ce075fc |
|
|
|
ce075fc |
%changelog
|
|
|
0df3309 |
* Mon May 2 2016 Tom Callaway <spot@fedoraproject.org> 3.8.0-2
|
|
|
0df3309 |
- make symlinks to where the linker thinks these libs are
|
|
|
0df3309 |
|
|
|
832406b |
* Thu Mar 10 2016 Dave Airlie <airlied@redhat.com> 3.8.0-1
|
|
|
832406b |
- compiler-rt 3.8.0 final release
|
|
|
832406b |
|
|
|
6e46151 |
* Thu Mar 03 2016 Dave Airlie <airlied@redhat.com> 3.8.0-0.2
|
|
|
6e46151 |
- compiler-rt 3.8.0rc3
|
|
|
6e46151 |
|
|
|
9c61c87 |
* Thu Feb 18 2016 Dave Airlie <airlied@redhat.com> - 3.8.0-0.1
|
|
|
9c61c87 |
- compiler-rt 3.8.0rc2
|
|
|
9c61c87 |
|
|
|
1f875a6 |
* Fri Feb 05 2016 Dave Airlie <airlied@redhat.com> 3.7.1-3
|
|
|
1f875a6 |
- fix compiler-rt paths - from rwindz0@gmail.com - #1304605
|
|
|
1f875a6 |
|
|
|
cb23b86 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.1-2
|
|
|
cb23b86 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
cb23b86 |
|
|
|
ce075fc |
* Tue Oct 06 2015 Jan Vcelak <jvcelak@fedoraproject.org> 3.7.0-100
|
|
|
ce075fc |
- initial version using cmake build system
|