tests/resolver: don't link against -lstrophe
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user