[Pkg-postgresql-public] Bug#717073: The libpq-dev package misses some dependencies
Christoph Berg
myon at debian.org
Tue Jul 16 16:26:58 UTC 2013
> > The real issue might as well be that the output of `pg_config --libs` is
> > wrong: I have just been able to link a program to libpq without libxml2,
> > libxslt or libedit and it runs fine.
>
> Nope, the real issue is that pg_config is not pkg-config :)
>
> pg_config --help says
> --libs show LIBS value used when PostgreSQL was built
>
> So it has nothing in common with pkg-config --libs pq (if that would
> exist) which will tell you which libs are needed to link with libpq.
Nod. pg_config --libs and --cflags should not really be used to link
against libpq. (I agree that it is confusing.)
9.3 will have pkg-config support:
$ pkg-config --libs --cflags libpq
-I/usr/include/postgresql -lpq
Christoph
--
cb at df7cb.de | http://www.df7cb.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-postgresql-public/attachments/20130716/260ab7e9/attachment.sig>
More information about the Pkg-postgresql-public
mailing list