[PATCH] Link libnetsnmptrapd against MYSQL_LIBS

When building with MySQL (MariaDB) support, this library must
be linked against the MySQL client library, or else it will
have unresolved symbols.

Origin: https://bugzilla.redhat.com/attachment.cgi?id=1301954
Bug: https://sourceforge.net/p/net-snmp/bugs/2792/
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=886221
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/net-snmp/+bug/1814254
Reviewed By: Rafael David Tinoco <rafaeldtinoco@ubuntu.com>
Last-Update: 2019-12-12

Gbp-Pq: Name Link-libnetsnmptrapd-against-MYSQL_LIBS.patch
This commit is contained in:
Adam Williamson 2017-07-20 10:31:47 -07:00 committed by Lu zhiping
parent 06e0671ab2
commit b5f41b33ec
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ snmppcap$(EXEEXT): snmppcap.$(OSUFFIX) $(USELIBS)
$(LINK) ${CFLAGS} -o $@ snmppcap.$(OSUFFIX) ${LDFLAGS} ${LIBS} -lpcap
libnetsnmptrapd.$(LIB_EXTENSION)$(LIB_VERSION): $(LLIBTRAPD_OBJS)
$(LIB_LD_CMD) $@ ${LLIBTRAPD_OBJS} $(MIBLIB) $(USELIBS) $(PERLLDOPTS_FOR_LIBS) $(LDFLAGS)
$(LIB_LD_CMD) $@ ${LLIBTRAPD_OBJS} $(MIBLIB) $(USELIBS) $(PERLLDOPTS_FOR_LIBS) $(LDFLAGS) $(MYSQL_LIBS)
$(RANLIB) $@
snmpinforminstall: