Dear Peter,
> What was the problem with just making all uses of pg_config in
> Makefile.global use a hardcoded bindir directly?
Because bindir is given by pg_config:-)
ISTM that the underlying issue, which was not foreseen in the initial pgxs
and fixed later, is that some distributions use a different installation
prefix at compile time and once the software is actually installed. You
would end up with a /tmp/build/.. path which does not exist. If the
installations are movable, you can only rely on pg_config.
--
Fabien.