1diff -Naur postgresql-9.6.1-orig/src/common/config_info.c postgresql-9.6.1/src/common/config_info.c
2--- postgresql-9.6.1-orig/src/common/config_info.c 2016-11-22 21:39:29.231929261 +0100
3+++ postgresql-9.6.1/src/common/config_info.c 2016-11-22 23:36:53.685163543 +0100
4@@ -118,7 +118,10 @@
5 i++;
6
7 configdata[i].name = pstrdup("PGXS");
8+ strlcpy(path, "HARDCODED_PGXS_PATH", sizeof(path));
9+/* commented out to be able to point to nix $out path
10 get_pkglib_path(my_exec_path, path);
11+*/
12 strlcat(path, "/pgxs/src/makefiles/pgxs.mk", sizeof(path));
13 cleanup_path(path);
14 configdata[i].setting = pstrdup(path);