On Thu, Jun 28, 2007 at 04:16:37PM -0400, Tom Lane wrote:
> Patrick Welche <prlw1(at)newn(dot)cam(dot)ac(dot)uk> 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...
In response to
pgsql-patches by date
|Next:||From: Theo Schlossnagle||Date: 2007-06-29 12:33:43|
|Subject: Re: [PATCHES] Doc update for pg_start_backup|
|Previous:||From: Patrick Welche||Date: 2007-06-29 12:06:42|
|Subject: Re: configure.in / xml / quoting trouble|