From e67c25513c17fef3d2878028b552a4ca752da013 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 22 Feb 2018 19:17:04 +0100 Subject: [PATCH] Use LDFLAGS from redhat-rpm-config --- checkpolicy.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/checkpolicy.spec b/checkpolicy.spec index e0bbd01..ed99f1b 100644 --- a/checkpolicy.spec +++ b/checkpolicy.spec @@ -4,7 +4,7 @@ Summary: SELinux policy compiler Name: checkpolicy Version: 2.7 -Release: 4%{?dist} +Release: 5%{?dist} License: GPLv2 Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20170804/checkpolicy-2.7.tar.gz # download https://raw.githubusercontent.com/fedora-selinux/scripts/master/selinux/make-fedora-selinux-patch.sh @@ -35,9 +35,9 @@ Only required for building policies. %build make clean -make LIBDIR="%{_libdir}" CFLAGS="%{optflags}" +make LIBDIR="%{_libdir}" CFLAGS="%{optflags}" LDFLAGS="$RPM_LD_FLAGS" cd test -make LIBDIR="%{_libdir}" CFLAGS="%{optflags}" +make LIBDIR="%{_libdir}" CFLAGS="%{optflags}" LDFLAGS="$RPM_LD_FLAGS" %install mkdir -p ${RPM_BUILD_ROOT}%{_bindir} @@ -56,6 +56,9 @@ install test/dispol ${RPM_BUILD_ROOT}%{_bindir}/sedispol %{_bindir}/sedispol %changelog +* Thu Feb 22 2018 Florian Weimer - 2.7-5 +- Use LDFLAGS from redhat-rpm-config + * Wed Feb 07 2018 Fedora Release Engineering - 2.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild