From: User Date: Thu, 24 May 2012 01:31:45 +0000 (+0000) Subject: [master] place external libs at the end of LIBADDs for datasrc tests. X-Git-Tag: trac2351_base~226^2~80 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2801bd9baadb96c2965b2cddc729e9ac2ec6dbb0;p=thirdparty%2Fkea.git [master] place external libs at the end of LIBADDs for datasrc tests. to reduce the risk of using already-installed older BIND10 libraries. basic approach was already agreed. this particular fix should be trivial. so directly committing. --- diff --git a/src/lib/datasrc/tests/Makefile.am b/src/lib/datasrc/tests/Makefile.am index 90fb3e4bf1..6c4a937286 100644 --- a/src/lib/datasrc/tests/Makefile.am +++ b/src/lib/datasrc/tests/Makefile.am @@ -31,9 +31,7 @@ common_sources = run_unittests.cc common_sources += $(top_srcdir)/src/lib/dns/tests/unittest_util.h common_sources += $(top_srcdir)/src/lib/dns/tests/unittest_util.cc -common_ldadd = $(GTEST_LDADD) -common_ldadd += $(SQLITE_LIBS) -common_ldadd += $(top_builddir)/src/lib/datasrc/libdatasrc.la +common_ldadd = $(top_builddir)/src/lib/datasrc/libdatasrc.la common_ldadd += $(top_builddir)/src/lib/dns/libdns++.la common_ldadd += $(top_builddir)/src/lib/util/libutil.la common_ldadd += $(top_builddir)/src/lib/log/liblog.la @@ -41,6 +39,7 @@ common_ldadd += $(top_builddir)/src/lib/exceptions/libexceptions.la common_ldadd += $(top_builddir)/src/lib/cc/libcc.la common_ldadd += $(top_builddir)/src/lib/testutils/libtestutils.la common_ldadd += $(top_builddir)/src/lib/util/unittests/libutil_unittests.la +common_ldadd += $(GTEST_LDADD) $(SQLITE_LIBS) # The general tests run_unittests_SOURCES = $(common_sources) diff --git a/src/lib/dns/tests/Makefile.am b/src/lib/dns/tests/Makefile.am index 26b4630358..60578285de 100644 --- a/src/lib/dns/tests/Makefile.am +++ b/src/lib/dns/tests/Makefile.am @@ -71,11 +71,11 @@ run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES) # an older version of botan, and somehow that version gets # linked if we don't run_unittests_LDFLAGS = $(BOTAN_LDFLAGS) $(GTEST_LDFLAGS) $(AM_LDFLAGS) -run_unittests_LDADD = $(BOTAN_LIBS) $(GTEST_LDADD) -run_unittests_LDADD += $(top_builddir)/src/lib/dns/libdns++.la +run_unittests_LDADD = $(top_builddir)/src/lib/dns/libdns++.la run_unittests_LDADD += $(top_builddir)/src/lib/util/libutil.la run_unittests_LDADD += $(top_builddir)/src/lib/util/unittests/libutil_unittests.la run_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libexceptions.la +run_unittests_LDADD += $(BOTAN_LIBS) $(GTEST_LDADD) endif noinst_PROGRAMS = $(TESTS)