From 7a278470580a96e01c6545304d787761ea9d8c80 Mon Sep 17 00:00:00 2001 From: Steve Hay Date: Thu, 6 Jun 2013 23:48:56 +0100 Subject: [PATCH] Add a note to Win32's BUILD_STATIC configuration to include Win32CORE Win32CORE needs to be included for the on-demand loading of Win32 to work. (Many of Win32's Perl level functions are pre-defined (even without a "use Win32" statement), while the implementation is in a dynamically linked module.) --- win32/Makefile | 3 ++- win32/makefile.mk | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/win32/Makefile b/win32/Makefile index 672953a..309ff19 100644 --- a/win32/Makefile +++ b/win32/Makefile @@ -777,7 +777,8 @@ SETARGV_OBJ = setargv$(o) STATIC_EXT = * !Win32 !SDBM_File !Encode !ELSE # specify static extensions here, for example: -#STATIC_EXT = Cwd Compress/Raw/Zlib +# (be sure to include Win32CORE to load Win32 on demand) +#STATIC_EXT = Win32CORE Cwd Compress/Raw/Zlib STATIC_EXT = Win32CORE !ENDIF diff --git a/win32/makefile.mk b/win32/makefile.mk index f50c444..401fee5 100644 --- a/win32/makefile.mk +++ b/win32/makefile.mk @@ -884,7 +884,8 @@ STATIC_EXT += !Compress/Raw/Bzip2 .ENDIF .ELSE # specify static extensions here, for example: -#STATIC_EXT = Cwd Compress/Raw/Zlib +# (be sure to include Win32CORE to load Win32 on demand) +#STATIC_EXT = Win32CORE Cwd Compress/Raw/Zlib STATIC_EXT = Win32CORE .ENDIF -- 2.7.4