From cdfab80e4fc5e8046352f52492cd13ee98ec116e Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Tue, 21 Jul 2020 18:42:12 +0200 Subject: [PATCH] Use set_build_flags and -fno-semantic-interposition see https://github.com/SELinuxProject/selinux/blob/master/README.md CFLAGS that are encouraged to be set when overriding are: -fno-semantic-interposition for gcc or compilers that do not do this. --- libsepol.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libsepol.spec b/libsepol.spec index f9b4951..b76936f 100644 --- a/libsepol.spec +++ b/libsepol.spec @@ -55,8 +55,9 @@ sed -i 's/fpic/fPIC/g' src/Makefile %endif %build -make clean -%make_build CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}" +%set_build_flags +CFLAGS="$CFLAGS -fno-semantic-interposition" +%make_build %install mkdir -p ${RPM_BUILD_ROOT}/%{_lib} @@ -99,6 +100,7 @@ exit 0 * Mon Jul 13 2020 Tom Stellard - 3.1-2 - Use make macros - https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro +- Use set_build_flags and -fno-semantic-interposition * Fri Jul 10 2020 Petr Lautrbach - 3.1-1 - SELinux userspace 3.1 release