Skip to content

Commit 198a201

Browse files
committed
Fix issue with gnutls
1 parent d8ec8ed commit 198a201

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

test/Makefile.am

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1818

1919
LDADD = $(top_builddir)/src/libhttpserver.la
20+
21+
if HAVE_GNUTLS
22+
LDADD += -lgnutls
23+
endif
24+
25+
LDADD += -lcurl
26+
2027
AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/httpserver/
2128
METASOURCES = AUTO
2229
check_PROGRAMS = basic file_upload http_utils threaded nodelay string_utilities http_endpoint ban_system ws_start_stop authentication deferred http_resource
@@ -37,11 +44,7 @@ nodelay_SOURCES = integ/nodelay.cpp
3744
http_resource_SOURCES = unit/http_resource_test.cpp
3845

3946
noinst_HEADERS = littletest.hpp
40-
AM_CXXFLAGS += -lcurl -Wall -fPIC -Wno-overloaded-virtual
41-
42-
if HAVE_GNUTLS
43-
AM_CXXFLAGS += -lgnutls
44-
endif
47+
AM_CXXFLAGS += -Wall -fPIC -Wno-overloaded-virtual
4548

4649
if COND_GCOV
4750
AM_CFLAGS += -O0 --coverage --no-inline

0 commit comments

Comments
 (0)