Accepting request 1074033 from devel:libraries:c_c++

- Make the package respect %optflags and disable LTO. (forwarded request 1073966 from marxin)

OBS-URL: https://build.opensuse.org/request/show/1074033
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libaio?expand=0&rev=41
This commit is contained in:
Dominique Leuenberger 2023-03-25 17:54:53 +00:00 committed by Git OBS Bridge
commit 679391abb9
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Mar 23 12:47:37 UTC 2023 - Martin Liška <mliska@suse.cz>
- Make the package respect %optflags and disable LTO.
-------------------------------------------------------------------
Fri Sep 23 18:51:25 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package libaio
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -66,7 +66,8 @@ with, for the Linux-native asynchronous I/O facility ("async I/O", or
%patch1 -p1
%build
%make_build OPTFLAGS="%{optflags}"
%define _lto_cflags %nil
CFLAGS="%{optflags}" %make_build
%install
%make_install libdir=%{_libdir}
@ -75,7 +76,7 @@ rm %{buildroot}%{_libdir}/*.a
%check
# qemu-linux-user does not emulate io_setup syscall, so none of the testsuite makes sense
%if ! 0%{?qemu_user_space_build}
%make_build OPTFLAGS="%{optflags}" partcheck
CFLAGS="%{optflags}" %make_build partcheck
%endif
%post -n %{lname} -p /sbin/ldconfig