From 39ec59f30fde11fede88a33e17357f794689310e Mon Sep 17 00:00:00 2001
From: Joe Conway <mail@joeconway.com>
Date: Thu, 5 Aug 2004 03:11:55 +0000
Subject: [PATCH] Restore behavior of --pgxs option to that of the original
 shell script.

---
 src/bin/pg_config/pg_config.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/pg_config/pg_config.c b/src/bin/pg_config/pg_config.c
index b3480ffb5ff..ff51b9427cb 100644
--- a/src/bin/pg_config/pg_config.c
+++ b/src/bin/pg_config/pg_config.c
@@ -17,7 +17,7 @@
  *
  * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
  *
- * $PostgreSQL: pgsql/src/bin/pg_config/pg_config.c,v 1.3 2004/08/02 12:34:14 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_config/pg_config.c,v 1.4 2004/08/05 03:11:55 joe Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -141,7 +141,7 @@ main (int argc, char ** argv)
 		else if (strcmp(argv[i],"--pgxs") == 0)
 		{
 			get_pkglib_path(mypath,otherpath);
-			strncat(otherpath, "/pgxs", MAXPGPATH-1);
+			strncat(otherpath, "/pgxs/src/makefiles/pgxs.mk", MAXPGPATH-1);
 		}
 
 		printf("%s\n",otherpath);
-- 
GitLab