Pass ldflags to make so hardening works

This commit is contained in:
Adam Jackson 2015-08-14 14:52:55 -04:00
parent 5e480567c8
commit cc880287e2

View File

@ -1,7 +1,7 @@
Summary: SELinux binary policy manipulation library
Name: libsepol
Version: 2.4
Release: 1%{?dist}
Release: 2%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20150202/libsepol-%{version}.tar.gz
@ -52,7 +52,7 @@ sed -i 's/fpic/fPIC/g' src/Makefile
%build
make clean
make %{?_smp_mflags} CFLAGS="%{optflags}"
make %{?_smp_mflags} CFLAGS="%{optflags}" LDFLAGS="%{?__global_ldflags}"
%install
rm -rf ${RPM_BUILD_ROOT}
@ -101,6 +101,9 @@ exit 0
%{_libdir}/libsepol.so.1
%changelog
* Fri Aug 14 2015 Adam Jackson <ajax@redhat.com> 2.4-2
- Pass ldflags to make so hardening works
* Mon Apr 13 2015 Petr Lautrbach <plautrba@redhat.com> 2.4-0.1
- Update to upstream release 2.4