I'm fairly confident that the DJGPP port requires extensions to
be statically linked. Although the newest available version is 5.8.8
built in 2007 (
http://www.delorie.com/pub/djgpp/current/v2gnu/)
As for allowing some modules to be statically linked; it does appear
to be used by the Cygwin, and native Win32 ports.
hints/cygwin.sh:
# compile Win32CORE "module" as static. try to avoid the space.
if test -z "$static_ext"; then
static_ext="Win32CORE"
else
static_ext="$static_ext Win32CORE"
fi
win32/
makefile.mk:
.IF "$(ALL_STATIC)" == "define"
# some exclusions, unfortunately, until fixed:
# - Win32 extension contains overlapped symbols with win32.c (BUG!)
# - MakeMaker isn't capable enough for SDBM_File (smaller bug)
# - Encode (encoding search algorithm relies on shared library?)
STATIC_EXT = * !Win32 !SDBM_File !Encode
.ELSE
# specify static extensions here, for example:
#STATIC_EXT = Cwd Compress/Raw/Zlib
STATIC_EXT = Win32CORE
.ENDIF
win32/Makefile:
!IF "$(ALL_STATIC)" == "define"
# some exclusions, unfortunately, until fixed:
# - Win32 extension contains overlapped symbols with win32.c (BUG!)
# - MakeMaker isn't capable enough for SDBM_File (smaller bug)
# - Encode (encoding search algorithm relies on shared library?)
STATIC_EXT = * !Win32 !SDBM_File !Encode
!ELSE
# specify static extensions here, for example:
#STATIC_EXT = Cwd Compress/Raw/Zlib
STATIC_EXT = Win32CORE
!ENDIF