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