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}