Andrew Dunstan wrote:
> Mark Cave-Ayland wrote:
>> This is because I only get the pgxs directory returned by "pgconfig
>> --pgxs" as opposed to the path to the pgxs.mk file itself - is that the
>> correct thing to do (i.e. the comment is wrong?) or is "pgconfig --pgxs"
>> returning the wrong thing?
>
> needs to be fixed in pg_config.c I think - should be a one-liner.
If the attached looks correct I'll apply it.
Joe
Index: src/bin/pg_config/pg_config.c
===================================================================
RCS file: /cvsroot/pgsql-server/src/bin/pg_config/pg_config.c,v
retrieving revision 1.3
diff -c -r1.3 pg_config.c
*** src/bin/pg_config/pg_config.c 2 Aug 2004 12:34:14 -0000 1.3
--- src/bin/pg_config/pg_config.c 4 Aug 2004 18:00:51 -0000
***************
*** 141,147 ****
else if (strcmp(argv[i],"--pgxs") == 0)
{
get_pkglib_path(mypath,otherpath);
! strncat(otherpath, "/pgxs", MAXPGPATH-1);
}
printf("%s\n",otherpath);
--- 141,147 ----
else if (strcmp(argv[i],"--pgxs") == 0)
{
get_pkglib_path(mypath,otherpath);
! strncat(otherpath, "/pgxs/src/makefiles/pgxs.mk", MAXPGPATH-1);
}
printf("%s\n",otherpath);