From: Jeremy C. Reed Date: Thu, 17 May 2012 11:31:01 +0000 (-0500) Subject: [master] set the library version for libdhcp++ X-Git-Tag: trac2351_base~226^2~94 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cb0e8914ce77fe7bab8b9c016a822c2a75affcd8;p=thirdparty%2Fkea.git [master] set the library version for libdhcp++ The libdhcp++ API was changed as part of the refactoring. When linking new tests to old library it fails with: /libexec/ld-elf.so.1: /usr/home/jreed/builder/work/BIND10-cppcheck/20120516153001-FreeBSD8-amd64-GCC/build/src/bin/dhcp4/tests/.libs/dhcp4_unittests: Undefined symbol "_ZN3isc4dhcp6OptionC1ENS1_8UniverseEtRKSt6vectorIhSaIhEE" This is: isc::dhcp::Option::Option(isc::dhcp::Option::Universe, unsigned short, std::vector > const&) See http://bind10.isc.org/wiki/LibraryVersioning for details. --- diff --git a/src/lib/dhcp/Makefile.am b/src/lib/dhcp/Makefile.am index 9d0091181f..d6af32c405 100644 --- a/src/lib/dhcp/Makefile.am +++ b/src/lib/dhcp/Makefile.am @@ -29,3 +29,4 @@ EXTRA_DIST = README libdhcp___la_CXXFLAGS = $(AM_CXXFLAGS) libdhcp___la_CPPFLAGS = $(AM_CPPFLAGS) $(LOG4CPLUS_INCLUDES) libdhcp___la_LIBADD = $(top_builddir)/src/lib/util/libutil.la +libdhcp___la_LDFLAGS = -no-undefined -version-info 1:0:0