From 1a7562dd84d32656bb154f73ab4e5c07c394b281 Mon Sep 17 00:00:00 2001 From: Josef Ridky Date: Thu, 29 Nov 2018 09:52:30 +0100 Subject: [PATCH] Resolves: #1543853 - add fPIE to CFLAGS --- net-snmp.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net-snmp.spec b/net-snmp.spec index 1c78d0b..51a223f 100644 --- a/net-snmp.spec +++ b/net-snmp.spec @@ -243,7 +243,7 @@ MIBS="$MIBS ucd-snmp/lmsensorsMib" --enable-mfd-rewrites \ --enable-ucd-snmp-compatibility \ --sysconfdir=%{_sysconfdir} \ - --with-cflags="$RPM_OPT_FLAGS -D_RPM_4_4_COMPAT" \ + --with-cflags="$RPM_OPT_FLAGS -D_RPM_4_4_COMPAT -fPIE" \ --with-ldflags="-Wl,-z,relro -Wl,-z,now" \ --with-logfile="/var/log/snmpd.log" \ --with-mib-modules="$MIBS" \ @@ -479,6 +479,7 @@ LD_LIBRARY_PATH=%{buildroot}/%{_libdir} make test %changelog * Tue Nov 27 2018 Josef Ridky - 1:5.8-3 - backport memory leak fixes from upstream +- add fPIE to CFLAGS (#1543853) * Mon Jul 23 2018 Josef Ridky - 1:5.8-2 - fix unresoved error with mysql functions