Re: Additional items for Win32 TODO list?

Lists: pgsql-hackers-win32
From: Horák Daniel <horak(at)sitmp(dot)cz>
To: <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: Additional items for Win32 TODO list?
Date: 2004-01-28 10:57:35
Message-ID: 66EFFC1A2B0A424E87D68EC10B1F458D04085E@EXCH2.mmp.plzen-city.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers-win32

> * various dlls (eg. cyrillic_and_mic.dll) dynamically link to externs
> expected to be supplied by postgres.exe. Unless I'm waaaay
> off the mark
> here, postmaster(.exe), acting in standalone mode, won't be able to
> dynamically load these dlls.

I have only a small remark about dynamicly loaded modules.

In the current state (in Cygwin) is postgres.exe manually linked as a
DLL, but with EXE suffix. So it creates an import library (with all
symbols exported = libpostgres.a) during the process of DLL creation and
all modules are linked with this library. I copied and modified the
process (which calls dlltool many times) very long ago (1998) from some
Cygwin docs about DLL creation.
I think it should be possible to use the same process in Mingw build
process for native PostgreSQL.

Dan Horak


From: Jason Tishler <jason(at)tishler(dot)net>
To: Horák Daniel <horak(at)sitmp(dot)cz>
Cc: pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: Additional items for Win32 TODO list?
Date: 2004-01-30 16:47:05
Message-ID: 20040130164704.GA644@tishler.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers-win32

On Wed, Jan 28, 2004 at 11:57:35AM +0100, Horák Daniel wrote:
> I copied and modified the process (which calls dlltool many times)
> very long ago (1998) from some Cygwin docs about DLL creation. I
> think it should be possible to use the same process in Mingw build
> process for native PostgreSQL.

Agreed, but does Mingw's ld support exporting symbols directly from an
executable? Cygwin's ld does:

http://cygwin.com/ml/cygwin-announce/2003-09/msg00002.html

If so, then maybe it's time to remove the dlltool stuff and make Cygwin
and Mingw more like the other Unixes (e.g., gcc -shared).

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6