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.
expat is still the default parser, but libxml2 can also be used
via an option to the configure script. New parsers can easily be
added by implementing a parser_foo.c that uses the interface defined
in parser.h.