Commit d7c8e1aa authored by Francis Dupont's avatar Francis Dupont

[4009] Fixed the boost_system dependency

parent 53134f81
......@@ -1245,7 +1245,13 @@ AC_SUBST(GTEST_SOURCE)
CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/ext/coroutine"
#
# Disable threads: Currently we don't use them.
CPPFLAGS="$CPPFLAGS -DASIO_DISABLE_THREADS=1"
CPPFLAGS="$CPPFLAGS -DBOOST_ASIO_DISABLE_THREADS=1"
#
# Don't want boost system library
CPPFLAGS="$CPPFLAGS -DBOOST_ERROR_CODE_HEADER_ONLY"
#
# Avoid boost::system::throws multiple defines
CPPFLAGS="$CPPFLAGS -DBOOST_SYSTEM_NO_DEPRECATED"
# Check for functions that are not available on all platforms
AC_CHECK_FUNCS([pselect])
......
......@@ -35,8 +35,7 @@ libkea_asiolink_la_SOURCES += udp_socket.h
# KEA_CXXFLAGS)
libkea_asiolink_la_CXXFLAGS = $(AM_CXXFLAGS)
libkea_asiolink_la_CPPFLAGS = $(AM_CPPFLAGS)
libkea_asiolink_la_LIBADD = $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
libkea_asiolink_la_LIBADD += -lboost_system
libkea_asiolink_la_LIBADD = $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
# IOAddress is sometimes used in user-library code
libkea_asiolink_includedir = $(pkgincludedir)/asiolink
......
......@@ -9,7 +9,6 @@ libkea_cc_la_SOURCES = data.cc data.h
libkea_cc_la_SOURCES += command_interpreter.cc command_interpreter.h
libkea_cc_la_LIBADD = $(top_builddir)/src/lib/exceptions/libkea-exceptions.la
libkea_cc_la_LIBADD += -lboost_system
libkea_cc_la_LDFLAGS = -no-undefined -version-info 1:0:0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment