Thread: pgxs under Win32 for PL/Java

pgxs under Win32 for PL/Java

From
Fabien COELHO
Date:
Dear Thomas,

> I'm trying to change the Makefile system for PL/Java so that it uses
> PGXS instead of compiling using a complete PostgreSQL source tree. As it
> turns out, the directory "include/port/win32" is not present in the
> PostgreSQL binary installation. Without it, it's not possible to compile
> on win32.

Please find enclosed a patch which attempts to fix your use of pgxs under
win32:
- install port/* includes
- install libpostgres.a by default (it seems to require MAKE_DLL=true)
- fix include path under win32 portname

The specific win32 fixes are performed in the Makefile.win32 file.

I have no mean to test that on a win32 machine. Could you do it?

I'm wondering whether the MAKE_DLL fix should also be done under cygwin.
Any opinion?

Thanks in advance,

--
Fabien Coelho - coelho@cri.ensmp.fr

Attachment

Re: pgxs under Win32 for PL/Java

From
Thomas Hallgren
Date:
Fabien COELHO wrote:

>I have no mean to test that on a win32 machine. Could you do it?
>
>
>
Sure, I'll test it sometime tomorrow or the day after. I'll get back to you.

>I'm wondering whether the MAKE_DLL fix should also be done under cygwin.
>Any opinion?
>
>
I can test cygwin too. But just out of curiosity; why would anyone want
to use cygwin with 8.0?

Regards,
Thomas Hallgren



Re: pgxs under Win32 for PL/Java

From
"Magnus Hagander"
Date:
>I can test cygwin too. But just out of curiosity; why would
>anyone want
>to use cygwin with 8.0?

It runs on 9x, native requires NT. There are still a lot of ppl on 9x. I
wouldn't expect a production server on 9x (indeed not a server at all),
but certainly some desktops that are using it.

//Magnus