1--- a/src/common/config_info.c
2+++ b/src/common/config_info.c
3@@ -118,7 +118,7 @@
4 i++;
5
6 configdata[i].name = pstrdup("PGXS");
7+ strlcpy(path, "@out@/lib", sizeof(path));
8- get_pkglib_path(my_exec_path, path);
9 strlcat(path, "/pgxs/src/makefiles/pgxs.mk", sizeof(path));
10 cleanup_path(path);
11 configdata[i].setting = pstrdup(path);