From eefcbbe1114a76a76838210bcb2f33b8f86cc67c12ade58b60c0bb30cfe32244 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 23 Mar 2023 19:27:13 +0000 Subject: [PATCH] Accepting request 1073966 from home:marxin:branches:devel:libraries:c_c++ - Make the package respect %optflags and disable LTO. OBS-URL: https://build.opensuse.org/request/show/1073966 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libaio?expand=0&rev=49 --- libaio.changes | 5 +++++ libaio.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/libaio.changes b/libaio.changes index ba244c6..dadc8e6 100644 --- a/libaio.changes +++ b/libaio.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 23 12:47:37 UTC 2023 - Martin Liška + +- Make the package respect %optflags and disable LTO. + ------------------------------------------------------------------- Fri Sep 23 18:51:25 UTC 2022 - Dirk Müller diff --git a/libaio.spec b/libaio.spec index e94f2dc..e326169 100644 --- a/libaio.spec +++ b/libaio.spec @@ -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