From 7804debdc062a6903dc8ace7fda969c6c0b588bd28c8665c3b142e041369dc44 Mon Sep 17 00:00:00 2001 From: Johannes Segitz Date: Fri, 24 Mar 2023 14:08:46 +0000 Subject: [PATCH] Accepting request 1074196 from home:jsegitz:branches:security:SELinux - Add -ffat-lto-objects to CFLAGS to prevent rpmlint errors because of LTO - Add -ffat-lto-objects to CFLAGS to prevent rpmlint errors because of LTO OBS-URL: https://build.opensuse.org/request/show/1074196 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libsemanage?expand=0&rev=101 --- libsemanage.changes | 6 ++++++ libsemanage.spec | 4 ++-- python-semanage.changes | 6 ++++++ python-semanage.spec | 4 ++-- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/libsemanage.changes b/libsemanage.changes index 5ab5c01..642f81d 100644 --- a/libsemanage.changes +++ b/libsemanage.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 24 13:54:12 UTC 2023 - Johannes Segitz + +- Add -ffat-lto-objects to CFLAGS to prevent rpmlint errors because + of LTO + ------------------------------------------------------------------- Thu Mar 23 13:06:51 UTC 2023 - Martin Liška diff --git a/libsemanage.spec b/libsemanage.spec index 93b7061..bc69934 100644 --- a/libsemanage.spec +++ b/libsemanage.spec @@ -112,8 +112,8 @@ grep /usr/libexec . -rl | xargs sed -i "s|/usr/libexec|%{_libexecdir}|g" %build %make_build clean -%make_build CFLAGS="%{optflags} -fno-semantic-interposition" CC="gcc" -%make_build CFLAGS="%{optflags} -fno-semantic-interposition" LIBDIR="%{_libdir}" LIBEXECDIR="%{_libexecdir}" SHLIBDIR="%{_lib}" CC="gcc" all +%make_build CFLAGS="%{optflags} -fno-semantic-interposition -ffat-lto-objects" CC="gcc" +%make_build CFLAGS="%{optflags} -fno-semantic-interposition -ffat-lto-objects" LIBDIR="%{_libdir}" LIBEXECDIR="%{_libexecdir}" SHLIBDIR="%{_lib}" CC="gcc" all %install mkdir -p %{buildroot}/%{_lib} diff --git a/python-semanage.changes b/python-semanage.changes index bfae58c..4ba3a1c 100644 --- a/python-semanage.changes +++ b/python-semanage.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 24 13:54:12 UTC 2023 - Johannes Segitz + +- Add -ffat-lto-objects to CFLAGS to prevent rpmlint errors because + of LTO + ------------------------------------------------------------------- Thu Mar 23 13:06:51 UTC 2023 - Martin Liška diff --git a/python-semanage.spec b/python-semanage.spec index 193c3aa..561996c 100644 --- a/python-semanage.spec +++ b/python-semanage.spec @@ -62,8 +62,8 @@ grep /usr/libexec . -rl | xargs sed -i "s|/usr/libexec|%{_libexecdir}|g" %build %make_build clean %{python_expand # loop over possible pythons -%make_build PYTHON=$python CFLAGS="%{optflags} -fno-semantic-interposition" swigify -%make_build PYTHON=$python CFLAGS="%{optflags} -fno-semantic-interposition" \ +%make_build PYTHON=$python CFLAGS="%{optflags} -fno-semantic-interposition -ffat-lto-objects" swigify +%make_build PYTHON=$python CFLAGS="%{optflags} -fno-semantic-interposition -ffat-lto-objects" \ LIBDIR="%{_libdir}" \ LIBEXECDIR="%{_libexecdir}" \ SHLIBDIR="%{_lib}" \