| From: | Mark Cave-Ayland <mark(dot)cave-ayland(at)ilande(dot)co(dot)uk> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Locating sharedir in PostgreSQL on Windows |
| Date: | 2007-11-26 14:53:09 |
| Message-ID: | 1196088790.5818.9.camel@mca-desktop |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi everyone,
I'm working on a piece of code for PostGIS to allow the loading of
projection configuration files from the share/postgresql directory, but
I can't find a way of getting this to work under Win32.
AIUI the way to do this would be to use a combination of my_exec_path
and get_share_path in order to find the directory, but MingW refuses to
find the my_exec_path variable during linking. Unfortunately I suspect
that this because my_exec_path is not declared as DLLIMPORT in
backend/utils/init/globals.c :(
I really need to find a solution to this that can work all the way back
to PostgreSQL 8.0 - can anyone think of any better ideas?
Many thanks,
Mark.
--
ILande - Open Source Consultancy
http://www.ilande.co.uk
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2007-11-26 14:55:20 | Re: 8.3devel slower than 8.2 under read-only load |
| Previous Message | Heikki Linnakangas | 2007-11-26 13:34:30 | Re: Replacement Selection |