Commit f17c3559 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[master] Force generation of shared test libraries when static linking.

The new hooks tests require two shared libraries, which were not generated
when static linking was used and caused tests to fail. This patch forces
generation of these shared libraries. Okayed on jabber.
parent fe33a56c
......@@ -15,6 +15,7 @@ AM_CXXFLAGS += $(WARNING_NO_MISSING_FIELD_INITIALIZERS_CFLAG)
if USE_STATIC_LINK
AM_LDFLAGS = -static
TEST_LIBS_LDFLAGS = -Bshareable
endif
CLEANFILES = *.gcno *.gcda
......@@ -30,10 +31,12 @@ lib_LTLIBRARIES = libco1.la libco2.la
libco1_la_SOURCES = callout_library.cc
libco1_la_CXXFLAGS = $(AM_CXXFLAGS)
libco1_la_CPPFLAGS = $(AM_CPPFLAGS) $(LOG4CPLUS_INCLUDES)
libco1_la_LDFLAGS = $(TEST_LIBS_LDFLAGS)
libco2_la_SOURCES = callout_library.cc
libco2_la_CXXFLAGS = $(AM_CXXFLAGS)
libco2_la_CPPFLAGS = $(AM_CPPFLAGS) $(LOG4CPLUS_INCLUDES)
libco2_la_LDFLAGS = $(TEST_LIBS_LDFLAGS)
TESTS += libdhcpsrv_unittests
......
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