Re: configure.in / xml / quoting trouble - Mailing list pgsql-patches

From Patrick Welche
Subject Re: configure.in / xml / quoting trouble
Date
Msg-id 20070629121127.GG8326@quartz.itdept.newn.cam.ac.uk
Whole thread Raw
In response to Re: configure.in / xml / quoting trouble  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: configure.in / xml / quoting trouble
List pgsql-patches
On Thu, Jun 28, 2007 at 04:16:37PM -0400, Tom Lane wrote:
> Patrick Welche <prlw1@newn.cam.ac.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...

Cheers,

Patrick

pgsql-patches by date:

Previous
From: Patrick Welche
Date:
Subject: Re: configure.in / xml / quoting trouble
Next
From: Andrew Dunstan
Date:
Subject: Re: WIP CSV logs