>>P.S. : libtool (which is used by the pygtk distribution) SHOULD be able
>>to create the dll by itself but it requires the
>>AC_LIBTOOL_WIN32_DLL macro to be called in configure.in. This is not the
>>case in pygtk-0.6.9 -> only a static library is created.
>
>That is interesting to know. pygtk should be using the
>__declspec(dllexport) stuff (through the python DL_EXPORT() macro), so it
>should be safe to turn this option on. If someone wants to test it, I
>will add this macro to the configure files for stable and development
>versions of pygtk and gnome-python.
This is a section of the libtool that you might be interested in :
---
AC_LIBTOOL_WIN32_DLL Macro
This macro should be used if the package has been ported to build clean
dlls on win32 platforms. Usually this means that any library data items are
exported with __declspec(dllexport) and imported with
__declspec(dllimport). If this macro is not used, libtool will assume that
the package libraries are not dll clean and will build only static
libraries on win32 hosts. AM_PROG_LIBTOOL must be called after this macro,
and provision must be made to pass -no-undefined to libtool in link mode
from the package Makefile. Naturally, passing -no-undefined means that all
the library symbols really are defined at link time!
---
Last time I used this feature, I could not find a way to use an external
def file (similar to the one I included in my previous message). By default
libtool dll exports all functions (instead of init_gtk only). I don't know
if this will create some problems with pygtk. And by the way, libtool
support of shared (DLL) libraries with mingw32 (recommended with the win32
port of gtk+) is still somewhat broken. So I guess there is no simple way
to compile pygtk (both the 0.6.x and 1.99.x branches) using the
configure+libtool combo with this compiler. For 0.6.9 I either create a
static library with the configure script then convert it manually into a
DLL, or I generate the _impl.c files manually and then use a homemade
setup.py script.
Cedric
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/