autotools: choose correct library for res_query()

See #72 for further information.
This commit is contained in:
Dmitry Podgorny
2016-02-05 23:30:32 +00:00
parent fc82aaeef2
commit a7c18ba6c7
2 changed files with 35 additions and 14 deletions

View File

@@ -9,6 +9,8 @@ PARSER_LIBS=@PARSER_LIBS@
SSL_CFLAGS = @openssl_CFLAGS@
SSL_LIBS = @openssl_LIBS@
DIST_LIBS = @DIST_LIBS@
STROPHE_FLAGS = -I$(top_srcdir)
STROPHE_LIBS = libstrophe.la
@@ -16,7 +18,7 @@ STROPHE_LIBS = libstrophe.la
lib_LTLIBRARIES = libstrophe.la
libstrophe_la_CFLAGS = $(SSL_CFLAGS) $(STROPHE_FLAGS) $(PARSER_CFLAGS)
libstrophe_la_LDFLAGS = $(SSL_LIBS) $(PARSER_LIBS) -no-undefined
libstrophe_la_LDFLAGS = $(SSL_LIBS) $(PARSER_LIBS) $(DIST_LIBS) -no-undefined
# Export only public API
libstrophe_la_LDFLAGS += -export-symbols-regex '^xmpp_'
libstrophe_la_SOURCES = src/auth.c src/conn.c src/ctx.c \