I'm a moron. Meant to send this to the list, sent it just to Jer instead. Here it is, take two. ----- Forwarded message from "Michael J. Pedersen" <[EMAIL PROTECTED]> -----
Date: Thu, 13 Oct 2005 07:42:34 -0400
From: "Michael J. Pedersen" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: [libpqxx-general] pqxx-config script ideas
On Thu, Oct 13, 2005 at 08:40:52AM +0200, [EMAIL PROTECTED] wrote:
> > However i found the pqxx-config doesn't do what most packages do and
> > instead actually gives the linker lines like:
> > pqxx-config --libs
> > output: -L/usr/local/lib -lpqxx -L/usr/local/lib/libpq -lpq
>
> This script was contributed by Arjen Baart. Frankly I have no idea what
> similar scripts do in other packages, and don't want to mess with
> something that may break compatibility... Could you help me out with a
> reference or standard somewhere?
I'd like to see such a reference, too, since all of the times I've used
a -config script, they have done the same. It's particularly useful
since I'm *VERY* likely to be using the same compiler on my project as
on my .so, and libpqxx already knows how that was done.
> I'll agree it's not very pretty to have the option names in there, but
> OTOH it could save a lot of trouble when using multiple libraries--and I
> think "-L" is just about universally accepted. Removing it would
> certainly break compatibility with existing Makefiles.
Mine included, if that matters at all :)
Possible solution: Another option which JUST prints the options, instead
of printing everything? For instance,
pqxx-config --libs --noflags
output: /usr/local/lib pqxx /usr/local/lib/libpq pq
> Come to think of it, it might be useful to have e.g. the separate socket
> library included there on Windows, or in the future perhaps the ssl
> library and/or the threading library of choice. Also, I think having the
> same libpq in there that libpqxx was built against reduces the risk of
> version skew between the two libraries.
That's something I've been meaning to address anyway, so that might be
one way to go about it, definitely.
--
Michael J. Pedersen
My IM IDs: Jabber/[EMAIL PROTECTED], ICQ/103345809, AIM/pedermj022171
Yahoo/pedermj2002, MSN/[EMAIL PROTECTED]
My GnuPG KeyID: 4E724A60 My Public Key Available At: pgp.mit.edu
My GnuPG Key Fingerprint: C31C 7E90 5992 9E5E 9A02 233D D8DD 985E 4E72 4A60
----- End forwarded message -----
--
Michael J. Pedersen
My IM IDs: Jabber/[EMAIL PROTECTED], ICQ/103345809, AIM/pedermj022171
Yahoo/pedermj2002, MSN/[EMAIL PROTECTED]
My GnuPG KeyID: 4E724A60 My Public Key Available At: pgp.mit.edu
My GnuPG Key Fingerprint: C31C 7E90 5992 9E5E 9A02 233D D8DD 985E 4E72 4A60
signature.asc
Description: Digital signature
_______________________________________________ Libpqxx-general mailing list [email protected] http://gborg.postgresql.org/mailman/listinfo/libpqxx-general
