Build with LTO
LTO has been explicitely disabled because of build issue with the optimization. It seems however that these issues are fixed now and Fedora guidelines ask to use default build options unless absolutely necessary. Reenable LTO. Also clean the specfile a little: no need for all these commented out lines related to git sources. Resolves: RHEL-46715 Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
This commit is contained in:
parent
1892da3e79
commit
4af17013f4
@ -1,27 +1,10 @@
|
|||||||
# git tag
|
|
||||||
#%%global commit 4f24f98960c223e56329519bb90a90f0b2ad813f
|
|
||||||
#%%global commitdate 20201120
|
|
||||||
#%%global shortcommit %%(c=%%{commit}; echo ${c:0:7})
|
|
||||||
|
|
||||||
# LTO causes linking issues randomly like
|
|
||||||
# lto1: internal compiler error: resolution sub id 0x7136344381f3059f not in object file
|
|
||||||
# So disabling LTO at this moment.
|
|
||||||
|
|
||||||
%global _lto_cflags %nil
|
|
||||||
|
|
||||||
Name: libtracefs
|
Name: libtracefs
|
||||||
Version: 1.8.0
|
Version: 1.8.0
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: LGPL-2.1-or-later AND GPL-2.0-or-later AND GPL-2.0-only
|
License: LGPL-2.1-or-later AND GPL-2.0-or-later AND GPL-2.0-only
|
||||||
Summary: Library for access kernel tracefs
|
Summary: Library for access kernel tracefs
|
||||||
|
|
||||||
URL: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/
|
URL: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/
|
||||||
# If upstream does not provide tarballs, to generate:
|
|
||||||
# git clone git://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git
|
|
||||||
# cd libtracefs
|
|
||||||
# git archive --prefix=libtracefs-%%{version}/ -o libtracefs-%%{version}.tar.gz %%{git_commit}
|
|
||||||
#Source0: libtracefs-%%{version}.tar.gz
|
|
||||||
#Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-%%{commit}.tar.gz
|
|
||||||
Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-%{version}.tar.gz
|
Source0: https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/snapshot/libtracefs-%{version}.tar.gz
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
@ -63,6 +46,9 @@ rm -rf %{buildroot}/%{_libdir}/libtracefs.a
|
|||||||
%{_libdir}/%{name}.so
|
%{_libdir}/%{name}.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 09 2024 Jerome Marchand <jmarchan@redhat.com> - 1.8.0-4
|
||||||
|
- Build with LTO (RHEL-46715)
|
||||||
|
|
||||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.8.0-3
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.8.0-3
|
||||||
- Bump release for June 2024 mass rebuild
|
- Bump release for June 2024 mass rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user