098c352
Name:		lld
ea99a80
Version:	6.0.1
2a864b9
Release:	1%{?dist}
098c352
Summary:	The LLVM Linker
098c352
098c352
License:	NCSA
098c352
URL:		http://llvm.org
da75323
Source0:	http://llvm.org/releases/%{version}/lld-%{version}%{?rc_ver:rc%{rc_ver}}.src.tar.xz
098c352
098c352
BuildRequires: cmake
098c352
BuildRequires: llvm-devel = %{version}
098c352
BuildRequires: ncurses-devel
098c352
BuildRequires: zlib-devel
098c352
BuildRequires: chrpath
098c352
098c352
%description
098c352
The LLVM project linker.
098c352
098c352
%package devel
098c352
Summary:	Libraries and header files for LLD
098c352
098c352
%description devel
098c352
This package contains library and header files needed to develop new native
098c352
programs that use the LLD infrastructure.
098c352
098c352
%package libs
098c352
Summary:	LLD shared libraries
098c352
098c352
%description libs
098c352
Shared libraries for LLD.
098c352
098c352
%prep
da75323
%autosetup -n %{name}-%{version}%{?rc_ver:rc%{rc_ver}}.src -p1
098c352
098c352
%build
098c352
098c352
mkdir %{_target_platform}
098c352
cd %{_target_platform}
098c352
098c352
%cmake .. \
098c352
	-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
9f38435
	-DLLVM_DYLIB_COMPONENTS="all" \
098c352
%if 0%{?__isa_bits} == 64
098c352
	-DLLVM_LIBDIR_SUFFIX=64
098c352
%else
098c352
	-DLLVM_LIBDIR_SUFFIX=
098c352
%endif
098c352
098c352
%make_build
098c352
098c352
%install
098c352
cd %{_target_platform}
098c352
%make_install
098c352
098c352
# Remove rpath
098c352
chrpath --delete %{buildroot}%{_bindir}/*
098c352
chrpath --delete %{buildroot}%{_libdir}/*.so*
098c352
098c352
%check
098c352
# Need to install llvm utils for check to pass
098c352
#cd _build
098c352
#make %{?_smp_mflags} check-lld
098c352
098c352
%post libs -p /sbin/ldconfig
098c352
%postun libs -p /sbin/ldconfig
098c352
098c352
%files
098c352
%{_bindir}/lld*
098c352
%{_bindir}/ld.lld
da75323
%{_bindir}/ld64.lld
da75323
%{_bindir}/wasm-ld
098c352
098c352
%files devel
098c352
%{_includedir}/lld
098c352
%{_libdir}/liblld*.so
098c352
098c352
%files libs
098c352
%{_libdir}/liblld*.so.*
098c352
098c352
%changelog
2a864b9
* Wed Jun 27 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-1
2a864b9
- 6.0.1 Release
2a864b9
ea99a80
* Fri May 11 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-0.1.rc1
ea99a80
- 6.0.1-rc1 Release
ea99a80
082405c
* Thu Mar 08 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-1
082405c
- 6.0.0 Release
082405c
de435f3
* Tue Feb 13 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.3.rc2
de435f3
- 6.0.0-rc2 Release
de435f3
948e525
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.0-0.2.rc1
948e525
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
948e525
da75323
* Thu Jan 25 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-0.1.rc1
da75323
- 6.0.0-rc1 Release
da75323
cbfdd41
* Thu Dec 21 2017 Tom Stellard <tstellar@redhat.com> - 5.0.1-1
cbfdd41
- 5.0.1 Release
cbfdd41
25acfbc
* Mon Sep 11 2017 Tom Stellard <tstellar@redhat.com> - 5.0.0-1
25acfbc
- 5.0.0 Release
25acfbc
dcb3503
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-4
dcb3503
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
dcb3503
e64615e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-3
e64615e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e64615e
4f2676b
* Thu Jul 06 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-2
4f2676b
- Backport r307092
4f2676b
a407b06
* Tue Jul 04 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-1
a407b06
- 4.0.1 Release
a407b06
9f38435
* Tue Jul 04 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-4
9f38435
- Fix build without llvm-static
9f38435
d5aeb58
* Wed May 31 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-3
d5aeb58
- Remove llvm-static dependency
d5aeb58
59978ab
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-2
59978ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
59978ab
098c352
* Tue Mar 14 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-1
098c352
- lld 4.0.0 Final Release