On Sat, Jun 22, 2013 at 11:07:25PM +0200, Matthias Kilian wrote:
> I also wonder if it wouldn't be better to go e step further and use
> pg_config instead of krb5-config. That one could be submitted to
> upstream.
I just noticed that the Setup.hs of hs-postgresql-libpq already
checks for and uses pg_config -- it just doesn't ask it for the
libraries to link with. So it may be enough to extend psqlBuildInfo in
Setup.hs with something like this:
...
libs <- pgconfig ["--libs"]
return emptyBuildInfo {
extraLibDirs = [strip libDir],
includeDirs = [strip incDir],
extraLibs = map (drop 2) $ words libs
}
Ciao,
Kili