> > 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 -- [email protected] | http://www.df7cb.de/
signature.asc
Description: Digital signature
_______________________________________________ Pkg-postgresql-public mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-postgresql-public
