diff --git a/proxy/http/Makefile.am b/proxy/http/Makefile.am index c580f4e51d1..c0a0cae54f4 100644 --- a/proxy/http/Makefile.am +++ b/proxy/http/Makefile.am @@ -129,22 +129,31 @@ test_HttpTransact_CPPFLAGS = \ -I$(abs_top_srcdir)/tests/include if OS_LINUX -test_HttpTransact_LDFLAGS = $(AM_LDFLAGS)\ - -Wl,--unresolved-symbols=ignore-all +test_HttpTransact_LDFLAGS = $(AM_LDFLAGS) else test_HttpTransact_LDFLAGS = $(AM_LDFLAGS)\ -Wl,-undefined -Wl,suppress -Wl,-flat_namespace -Wl,-dead_strip endif -test_HttpTransact_LDADD = \ +test_HttpTransact_LDADD = \ + $(top_builddir)/proxy/http/libhttp.a \ + $(top_builddir)/proxy/http/remap/libhttp_remap.a \ + $(top_builddir)/proxy/logging/liblogging.a \ + $(top_builddir)/proxy/hdrs/libhdrs.a \ + $(top_builddir)/iocore/utils/libinkutils.a \ + $(top_builddir)/iocore/hostdb/libinkhostdb.a \ + $(top_builddir)/iocore/dns/libinkdns.a \ + $(top_builddir)/iocore/cache/libinkcache.a \ + $(top_builddir)/lib/fastlz/libfastlz.a \ + $(top_builddir)/iocore/aio/libinkaio.a \ $(top_builddir)/src/tscore/libtscore.la \ + $(top_builddir)/src/tscpp/util/libtscpputil.la \ + $(top_builddir)/proxy/libproxy.a \ + $(top_builddir)/iocore/net/libinknet.a \ $(top_builddir)/src/records/librecords_p.a \ - $(top_builddir)/proxy/ProxySession.o \ - $(top_builddir)/proxy/http/HttpTransact.o \ - $(top_builddir)/proxy/http/HttpTransactHeaders.o \ - $(top_builddir)/proxy/hdrs/libhdrs.a \ $(top_builddir)/iocore/eventsystem/libinkevent.a \ - @SWOC_LIBS@ + -lz -llzma -lcrypto -lresolv -lssl \ + @LIBPCRE@ @HWLOC_LIBS@ @SWOC_LIBS@ test_HttpTransact_SOURCES = \ ../../iocore/cache/test/stub.cc \ diff --git a/proxy/http/unit_tests/test_HttpTransact.cc b/proxy/http/unit_tests/test_HttpTransact.cc index caa07e9e724..518e1732362 100644 --- a/proxy/http/unit_tests/test_HttpTransact.cc +++ b/proxy/http/unit_tests/test_HttpTransact.cc @@ -567,7 +567,3 @@ TEST_CASE("HttpTransact", "[http]") } } } - -#include "HttpSessionManager.h" -HttpSessionManager httpSessionManager; -StatPagesManager statPagesManager; \ No newline at end of file