Avoid recompiling postgres_ffi every time you run "make".

Running "make" at the top level calls "make install" to install the
PostgreSQL headers into the pg_install/ directory. That always updated
the modification time of the headers even if there were no changes,
triggering recompilation of the postgres_ffi bindings. To avoid that,
use 'install -C', to install the PostgreSQL headers.

However, there was an upstream PostgreSQL issue that the
src/include/Makefile didn't respect the INSTALL configure option. That
was just fixed in upstream PostgreSQL, so cherry-pick that fix to our
vendor/postgres repositories.

Fixes https://github.com/neondatabase/neon/issues/1873.
This commit is contained in:
Heikki Linnakangas
2022-09-14 09:53:06 +03:00
committed by Heikki Linnakangas
parent d87c9e62d6
commit f86ea09323
3 changed files with 8 additions and 2 deletions