Correct the libtool file

LDFLAGS needs to be set, or the final library produced won't have dependency on the parser(expat/libxml2).

Someone has fixed the issue on SSL linking(ac886a156a), and the parser should be linked as well. Thus it will confuse the packager manager's dependency generator(At least RPM).

And, this commit also correct the usage of libtool file cflags and ldflags introduced from the commit mentioned above, as they are not the same terminology.
This commit is contained in:
Christopher Meng
2014-08-07 17:17:34 +08:00
parent 706d691f23
commit 51816cd7a8

View File

@@ -13,7 +13,8 @@ STROPHE_LIBS = -lstrophe $(PARSER_LIBS) $(SSL_LIBS)
## Main build targets
lib_LTLIBRARIES = libstrophe.la
libstrophe_la_CFLAGS=$(SSL_LIBS) $(STROPHE_FLAGS) $(PARSER_CFLAGS)
libstrophe_la_CFLAGS=$(STROPHE_FLAGS) $(PARSER_CFLAGS)
libstrophe_la_LDFLAGS=$(SSL_LIBS) $(PARSER_LIBS)
libstrophe_la_SOURCES = src/auth.c src/conn.c src/ctx.c \
src/event.c src/handler.c src/hash.c \
src/jid.c src/md5.c src/sasl.c src/sha1.c \