I tried to use +python/dyn on Cygwin, but it did't work.
It seems that Vim is going to load libpython2.6.dll.a instead of
libpython2.6.dll.
$ ./configure --with-feature=huge --enable-pythoninterp=dynamic
$ make
$ ./vim
:python print "hello"
E370: Could not load library libpython2.6.dll.a
E263: Sorry, this command is disabled, the Python library could not be loaded.
The filename of the shared library is taken from $(INSTSONAME) defined in
/usr/lib/pythonX.X/Makefile on Linux, but $(INSTSONAME) doesn't point the
filename of the DLL on Cygwin. I think $(DLLLIBRARY) should be used instead
of $(INSTSONAME) on Cygwin.
Attached patch fixes this problem.
Best regards,
Ken Takata