]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] set the library version for libdhcp++
authorJeremy C. Reed <jreed@ISC.org>
Thu, 17 May 2012 11:31:01 +0000 (06:31 -0500)
committerJeremy C. Reed <jreed@ISC.org>
Thu, 17 May 2012 11:31:01 +0000 (06:31 -0500)
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<unsigned char, std::allocator<unsigned char> > const&)

See http://bind10.isc.org/wiki/LibraryVersioning for details.

src/lib/dhcp/Makefile.am

index 9d0091181f52a91bbd48efa91a2113a89b495adb..d6af32c4054453fd584be06d556dd64c224b00df 100644 (file)
@@ -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