From 3db7e9955018220feaa569614d73832d0699a3ee0619fb6ebf5c9de04fb59a78 Mon Sep 17 00:00:00 2001 From: Johannes Segitz Date: Fri, 24 Mar 2023 14:08:42 +0000 Subject: [PATCH] Accepting request 1074195 from home:jsegitz:branches:security:SELinux - Add -ffat-lto-objects to CFLAGS to prevent rpmlint errors because of LTO OBS-URL: https://build.opensuse.org/request/show/1074195 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=150 --- libselinux.changes | 6 ++++++ libselinux.spec | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libselinux.changes b/libselinux.changes index aefda71..960e7bc 100644 --- a/libselinux.changes +++ b/libselinux.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 24 13:51:52 UTC 2023 - Johannes Segitz + +- Add -ffat-lto-objects to CFLAGS to prevent rpmlint errors because + of LTO + ------------------------------------------------------------------- Thu Mar 23 15:39:15 UTC 2023 - Martin Liška diff --git a/libselinux.spec b/libselinux.spec index 7f50fbe..c3eca4d 100644 --- a/libselinux.spec +++ b/libselinux.spec @@ -103,7 +103,7 @@ necessary to develop your own software using libselinux. %patch5 -p1 %build -make %{?_smp_mflags} LIBDIR="%{_libdir}" CC="gcc" CFLAGS="%{optflags} -fno-semantic-interposition" USE_PCRE2=y +make %{?_smp_mflags} LIBDIR="%{_libdir}" CC="gcc" CFLAGS="%{optflags} -fno-semantic-interposition -ffat-lto-objects" USE_PCRE2=y %install mkdir -p %{buildroot}/%{_lib}