Build libFuzzer with gcc

This commit is contained in:
Tom Stellard 2018-01-17 15:19:02 +00:00
parent db7e85cdc5
commit df70abdcc2
1 changed files with 7 additions and 6 deletions

View File

@ -5,7 +5,7 @@
Name: compiler-rt Name: compiler-rt
Version: 5.0.1 Version: 5.0.1
Release: 1%{?dist} Release: 2%{?dist}
Summary: LLVM "compiler-rt" runtime libraries Summary: LLVM "compiler-rt" runtime libraries
License: NCSA or MIT License: NCSA or MIT
@ -13,8 +13,7 @@ URL: http://llvm.org
Source0: http://llvm.org/releases/%{version}/%{name}-%{version}.src.tar.xz Source0: http://llvm.org/releases/%{version}/%{name}-%{version}.src.tar.xz
# Extract libFuzzer sources from the llvm tarball. We are packaging it as part # Extract libFuzzer sources from the llvm tarball. We are packaging it as part
# of compiler-rt, because upstream moved the code into the compiler-rt project # of compiler-rt, because upstream moved the code into the compiler-rt project
# for LLVM 6.0.0, and we also don't want to add clang as a build dependency for # for LLVM 6.0.0.
# llvm.
# wget http://llvm.org/releases/5.0.1/llvm-5.0.1.src.tar.xz # wget http://llvm.org/releases/5.0.1/llvm-5.0.1.src.tar.xz
# tar -xJf llvm-5.0.1.src.tar.xz # tar -xJf llvm-5.0.1.src.tar.xz
# cd llvm-5.0.1.src/lib/ # cd llvm-5.0.1.src/lib/
@ -26,9 +25,6 @@ BuildRequires: python
BuildRequires: llvm-devel = %{version} BuildRequires: llvm-devel = %{version}
BuildRequires: llvm-static = %{version} BuildRequires: llvm-static = %{version}
# libFuzzer must be built by clang.
BuildRequires: clang
%description %description
The compiler-rt project is a part of the LLVM project. It provides The compiler-rt project is a part of the LLVM project. It provides
implementation of the low-level target-specific hooks required by implementation of the low-level target-specific hooks required by
@ -56,6 +52,8 @@ cd _build
make %{?_smp_mflags} make %{?_smp_mflags}
# Build Fuzzer with gcc
export CXX=g++
pushd ../../Fuzzer pushd ../../Fuzzer
./build.sh ./build.sh
popd popd
@ -92,6 +90,9 @@ cd _build
%{_libdir}/clang/%{version} %{_libdir}/clang/%{version}
%changelog %changelog
* Wed Jan 17 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-2
- Build libFuzzer with gcc
* Wed Dec 20 2017 Tom Stellard <tstellar@redhat.com> - 5.0.1-1 * Wed Dec 20 2017 Tom Stellard <tstellar@redhat.com> - 5.0.1-1
- 5.0.1 Release - 5.0.1 Release