diff --git a/SPECS/net-snmp.spec b/SPECS/net-snmp.spec
index b0c0400..f85bdff 100644
--- a/SPECS/net-snmp.spec
+++ b/SPECS/net-snmp.spec
@@ -10,7 +10,7 @@
 Summary:    A collection of SNMP protocol tools and libraries
 Name:       net-snmp
 Version:    5.8
-Release:    16%{?dist}
+Release:    17%{?dist}
 Epoch:      1
 
 License:    BSD
@@ -248,7 +248,7 @@ MIBS="$MIBS ucd-snmp/lmsensorsMib"
     --enable-ucd-snmp-compatibility \
     --sysconfdir=%{_sysconfdir} \
     --with-cflags="$RPM_OPT_FLAGS" \
-    --with-ldflags="-Wl,-z,relro -Wl,-z,now" \
+    --with-ldflags="-Wl,-z,relro -Wl,-z,now -lm" \
     --with-logfile="/var/log/snmpd.log" \
     --with-mib-modules="$MIBS" \
     --with-mysql \
@@ -465,6 +465,9 @@ LD_LIBRARY_PATH=%{buildroot}/%{_libdir} make test
 %{_libdir}/libnetsnmptrapd*.so.%{soname}*
 
 %changelog
+* Tue Aug 11 2020 Josef Ridky <jridky@redhat.com> - 1:5.8-17
+- add math library in LDFLAGS (#1846252)
+
 * Thu Jul 16 2020 Josef Ridky <jridky@redhat.com> - 1:5.8-16
 - remove file due licensing issues (#1690936)