On 25.09.25 15:17, Maxim Orlov wrote:
> I think that the Makefile should be written so that variable values,
> specifically, PG_CONFIG, can be given to it from the environment rather
> than the make command line. As a result, using the "?=" operator rather
> than "=" to set a default value to the PG_CONFIG variable appears more
> acceptable.
I think the current text is preferable. This allows running
make PG_CONFIG=...
so that you can pick a different PostgreSQL installation for a
particular build.
If you always want to use a particular PostgreSQL installation, then you
could alter the PATH in the environment.
I don't know that there is a use case of setting only PG_CONFIG in the
environment that is not covered by these other two approaches.