On Thu, Nov 13, 2003 at 03:42:37PM -0300, Franco Bruno Borghesi wrote:
> Thanks Jason!
You are welcome.
> I replaced in my Makefile :
> gcc -shared -o ..\bin\pgakya.so *.o
> for:
> dlltool --export-all --output-def pgakya.def *.o
> dllwrap -o ..\bin\pgakya.dll --dllname pgakya.dll -def pgakya.def
> *.o /tmp/ postgresql7.4RC2/src/utils/dllinit.o /usr/lib/postgresql
> -Ltmp/postgresql7.4RC2 /src/backend -lpostgres
>
> this two lines did the job, and everything works perfect now.
The following should work too:
gcc -shared -Wl,--export-all-symbols -o ../bin/pgakya.dll *.o -L/tmp/postgresql7.4RC2/src/backend -lpostgres
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