tests/resolver: don't link against -lstrophe

This commit is contained in:
Dmitry Podgorny
2016-04-30 16:39:31 +00:00
parent c62d1d64ab
commit 7f57e3987a
3 changed files with 9 additions and 6 deletions

View File

@@ -101,10 +101,10 @@ tests_test_jid_CFLAGS = $(STROPHE_FLAGS) -I$(top_srcdir)/src
tests_test_jid_LDADD = $(STROPHE_LIBS)
tests_test_jid_LDFLAGS = -static
tests_test_resolver_SOURCES = tests/test_resolver.c tests/test.h
tests_test_resolver_SOURCES = tests/test_resolver.c tests/test.h \
src/resolver.c src/snprintf.c
tests_test_resolver_CFLAGS = $(STROPHE_FLAGS) -I$(top_srcdir)/src
tests_test_resolver_LDADD = $(STROPHE_LIBS)
tests_test_resolver_LDFLAGS = -static
tests_test_resolver_LDADD = $(RESOLV_LIBS)
tests_test_rand_SOURCES = tests/test_rand.c tests/test.c src/sha1.c
tests_test_rand_CFLAGS = $(STROPHE_FLAGS) -I$(top_srcdir)/src

View File

@@ -21,9 +21,9 @@
#include <string.h> /* strncpy */
#include "common.h"
#include "resolver.h"
#include "ostypes.h"
#include "snprintf.h"
#include "resolver.h"
#define MESSAGE_HEADER_LEN 12
#define MESSAGE_RESPONSE 1

View File

@@ -9,7 +9,10 @@
* This program is dual licensed under the MIT and GPLv3 licenses.
*/
/* gcc -o test_resolver -I. -I./src tests/test_resolver.c -static -lstrophe */
/*
* gcc -o test_resolver -I./src tests/test_resolver.c src/resolver.c \
* src/snprintf.c
*/
#include <assert.h>
#include <stdio.h>