mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Fix problems with PGXS builds against an installation tree that was
relocated after installation. We can't trust the installation paths inserted into Makefile.global by configure, so instead we must get the paths from pg_config. This requires extending pg_config to support all the separately-configurable path names, but that was on TODO anyway.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/port/path.c,v 1.58 2005/08/29 19:39:39 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/port/path.c,v 1.59 2005/09/27 17:39:35 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -538,6 +538,24 @@ get_locale_path(const char *my_exec_path, char *ret_path)
|
||||
make_relative_path(ret_path, LOCALEDIR, PGBINDIR, my_exec_path);
|
||||
}
|
||||
|
||||
/*
|
||||
* get_doc_path
|
||||
*/
|
||||
void
|
||||
get_doc_path(const char *my_exec_path, char *ret_path)
|
||||
{
|
||||
make_relative_path(ret_path, DOCDIR, PGBINDIR, my_exec_path);
|
||||
}
|
||||
|
||||
/*
|
||||
* get_man_path
|
||||
*/
|
||||
void
|
||||
get_man_path(const char *my_exec_path, char *ret_path)
|
||||
{
|
||||
make_relative_path(ret_path, MANDIR, PGBINDIR, my_exec_path);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* get_home_path
|
||||
|
Reference in New Issue
Block a user