From: | Patrick Welche <prlw1(at)newn(dot)cam(dot)ac(dot)uk> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, pgsql-patches(at)postgresql(dot)org |
Subject: | Re: configure.in / xml / quoting trouble |
Date: | 2007-06-29 12:11:27 |
Message-ID: | 20070629121127.GG8326@quartz.itdept.newn.cam.ac.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
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...
Cheers,
Patrick
From | Date | Subject | |
---|---|---|---|
Next Message | Theo Schlossnagle | 2007-06-29 12:33:43 | Re: [PATCHES] Doc update for pg_start_backup |
Previous Message | Patrick Welche | 2007-06-29 12:06:42 | Re: configure.in / xml / quoting trouble |