citus/src/backend/distributed
Jason Petersen b73c3b1604 Fix various build issues
I came across several places we weren't as flexible or resilient as we
should have been in our build logic. They include:

  * Not using `DESTDIR` in the install-header destination
  * Allowing callers to specify `VPATH` or `srcdir` (which breaks)
  * Using absolute path for SCRIPTS (9.5 prepends srcdir)
  * Including libpq-int in a confusing way (extracted this function)
  * Having server includes come first during csql build (client must)

In particular, I hit all of these attempting to build with pg_buildext
in Debian. It passes in an explicit VPATH, as well as srcdir (breaking
all recursive make invocations), and also uses DESTDIR during install.

In addition, a PGDG-enabled Debian box will have the latest libpq-dev
headers (e.g. 9.5) even when building against an older server version
(e.g. 9.4). This leads to problems when including e.g. `c.h`, which
is ambiguous. While compiling more client-side code (csql), we need to
ensure the newer libpq headers are included _first_, so I fixed that.
2016-03-11 13:38:47 -07:00
..
commands Merge remote-tracking branch 'origin/master' into feature/drop_shards_on_drop_table 2016-02-17 22:52:58 +01:00
executor Merge from master branch into feature/citusdb-to-citus 2016-02-17 14:49:01 +02:00
master Final formatting fixes 2016-02-17 17:20:14 -07:00
planner Merge from master branch into feature/citusdb-to-citus 2016-02-17 14:49:01 +02:00
relay Final formatting fixes 2016-02-17 17:20:14 -07:00
test Fix various build issues 2016-03-11 13:38:47 -07:00
utils Merge remote-tracking branch 'origin/master' into feature/drop_shards_on_drop_table 2016-02-17 22:52:58 +01:00
worker Merge from master branch into feature/citusdb-to-citus 2016-02-17 14:49:01 +02:00
.gitignore Changed product name to citus 2016-02-15 16:04:31 +02:00
Makefile Fix various build issues 2016-03-11 13:38:47 -07:00
citus.control Changed product name to citus 2016-02-15 16:04:31 +02:00
citus.sql Merge remote-tracking branch 'origin/master' into feature/drop_shards_on_drop_table 2016-02-17 22:52:58 +01:00
shared_library_init.c Merge from master branch into feature/citusdb-to-citus 2016-02-17 14:49:01 +02:00