On Thu, Jun 28, 2007 at 04:16:37PM -0400, Tom Lane wrote: > Patrick Welche <[EMAIL PROTECTED]> writes: > > The thing is, if xml2-config is meant to give the flags necessary to > > compile a programme with libxml, then why pick-and-choose which flags > > you are going to use? > > Well, if they gave the flags in a sane format (distinguishing CPPFLAGS > from CFLAGS, and LDFLAGS from LIBS), then we could just use them as-is. > They don't, so we have to do some picking-apart.
Fair point - I will try to use libxml2.la instead, as libtool knows how to link to shared libraries portably. (Begs a question on how ac_check_lib would cope, but I need to look into that more.) > What exactly does xml2-config --libs produce on your machine? -Wl,-R/usr/local/lib -L/usr/local/lib -lxml2 -lz -lpthread -lm but because I added the -R - it isn't the default as distributed, but seemed to be the right place to store the flags I need to link to libxml. So, feel free to drop the first part of that patch... Cheers, Patrick ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly