build rsyslog with PIE and RELRO
This commit is contained in:
parent
2cb62b580c
commit
1d773e5c31
@ -4,7 +4,7 @@
|
|||||||
Summary: Enhanced system logging and kernel message trapping daemon
|
Summary: Enhanced system logging and kernel message trapping daemon
|
||||||
Name: rsyslog
|
Name: rsyslog
|
||||||
Version: 4.6.3
|
Version: 4.6.3
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
URL: http://www.rsyslog.com/
|
URL: http://www.rsyslog.com/
|
||||||
@ -91,7 +91,8 @@ IETF standard protocol.
|
|||||||
%patch0 -p1 -b .unlimited-select
|
%patch0 -p1 -b .unlimited-select
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -DSYSLOGD_PIDNAME=\\\"syslogd.pid\\\""
|
export CFLAGS="$RPM_OPT_FLAGS -fpie -DSYSLOGD_PIDNAME=\\\"syslogd.pid\\\""
|
||||||
|
export LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
|
||||||
%configure --disable-static \
|
%configure --disable-static \
|
||||||
--disable-testbench \
|
--disable-testbench \
|
||||||
--enable-mysql \
|
--enable-mysql \
|
||||||
@ -199,6 +200,9 @@ fi
|
|||||||
%{_libdir}/rsyslog/lmnsd_gtls.so
|
%{_libdir}/rsyslog/lmnsd_gtls.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 07 2010 Tomas Heinrich <theinric@redhat.com> 4.6.3-2
|
||||||
|
- build rsyslog with PIE and RELRO
|
||||||
|
|
||||||
* Thu Jul 15 2010 Tomas Heinrich <theinric@redhat.com> 4.6.3-1
|
* Thu Jul 15 2010 Tomas Heinrich <theinric@redhat.com> 4.6.3-1
|
||||||
- upgrade to new upstream stable version 4.6.3
|
- upgrade to new upstream stable version 4.6.3
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user