postgresql-ocaml
postgresql-ocaml copied to clipboard
Port the config discovery script to pkg-config
- PostgreSQL installations also add
pkg-configconfiguration files. - In cross-compilation scenarios, calling out to
pg_configwill list the wrong--libdir - This change uses
pkg-configto find the C include & library flags forlibpq- I've kept a fallback to the current
pg_config-based implementation to avoid errors in cases that users don't havepkg-configin their$PATH.
- I've kept a fallback to the current
also slightly related to https://github.com/ocaml/dune/issues/1492#issuecomment-1236421326