Link build requirements in tests too

Thanks Ondřej Surý
This commit is contained in:
Willem Toorop 2015-01-20 12:14:23 +01:00
parent 4c311a9cb3
commit 6fc63d242b
1 changed files with 4 additions and 4 deletions

View File

@ -58,8 +58,8 @@ CHECK_EV_PROG=@CHECK_EV_PROG@
CC=@CC@
CFLAGS=-I$(srcdir)/.. -I$(srcdir) -I.. $(cflags) @CFLAGS@
LDFLAGS=-L..
LDLIBS=../libgetdns.la
LDFLAGS=-L.. @LDFLAGS@
LDLIBS=../libgetdns.la @LIBS@
CHECK_LIBS=@CHECK_LIBS@
CHECK_CFLAGS=@CHECK_CFLAGS@
@ -111,7 +111,7 @@ tests_stub_sync: tests_stub_sync.lo
check_getdns_common: check_getdns_common.lo
$(LIBTOOL) --tag=CC --mode=link $(CC) $(CFLAGS) $(LDFLAGS) $(LDLIBS) -o $@ check_getdns_common.lo
check_getdns: check_getdns.lo check_getdns_common.lo check_getdns_context_set_timeout.lo check_getdns_transport.lo check_getdns_selectloop.lo
$(LIBTOOL) --tag=CC --mode=link $(CC) $(CFLAGS) $(LDFLAGS) $(LDLIBS) $(CHECK_CFLAGS) $(CHECK_LIBS) -o $@ check_getdns.lo check_getdns_common.lo check_getdns_context_set_timeout.lo check_getdns_transport.lo check_getdns_selectloop.lo
@ -139,7 +139,7 @@ nolibcheck:
@echo "*** and usable during configuration"
@echo "***"
@false
test: $(NOLIBCHECK) all
./$(CHECK_GETDNS)
if test $(have_libevent) = 1 ; then ./$(CHECK_EVENT_PROG) ; fi