Reorganize code to allow path-relative installs.
Bruce Momjian <bruce@momjian.us>
Reorganize code to allow path-relative installs. Create new get_* functions to access compiled-in paths and adjust if relative installs are to be used. Clean up substitute_libpath_macro() code.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/postmaster.c | modified | +3 −1 |
| src/backend/tcop/postgres.c | modified | +4 −1 |
| src/backend/utils/fmgr/dfmgr.c | modified | +13 −52 |
| src/backend/utils/fmgr/Makefile | modified | +2 −2 |
| src/backend/utils/init/globals.c | modified | +2 −1 |
| src/bin/initdb/initdb.c | modified | +19 −16 |
| src/bin/initdb/Makefile | modified | +2 −2 |
| src/bin/psql/Makefile | modified | +8 −4 |
| src/bin/psql/startup.c | modified | +13 −11 |
| src/include/miscadmin.h | modified | +2 −1 |
| src/include/port.h | modified | +7 −9 |
| src/interfaces/ecpg/preproc/ecpg.c | modified | +15 −4 |
| src/interfaces/ecpg/preproc/Makefile | modified | +8 −7 |
| src/interfaces/libpq/Makefile | modified | +8 −2 |
| src/port/exec.c | modified | +18 −1 |
| src/port/Makefile | modified | +8 −1 |
| src/port/path.c | modified | +241 −37 |
| src/timezone/Makefile | modified | +1 −3 |
| src/timezone/pgtz.c | modified | +2 −17 |