This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Include the Encode extension in the ALL_STATIC build on Win32 for VC++
authorSteve Hay <steve.m.hay@googlemail.com>
Sat, 8 Jun 2013 01:16:17 +0000 (02:16 +0100)
committerSteve Hay <steve.m.hay@googlemail.com>
Sat, 8 Jun 2013 01:16:17 +0000 (02:16 +0100)
commit13cedc2a3e4c518d94e81e9837febef77948e0e5
treeedc2cd072496fae9d7cfb902deef2c88149a2047
parent903f2d7006dbd87b9347acb742b9d7848f566aed
Include the Encode extension in the ALL_STATIC build on Win32 for VC++

Thanks to Jan Dubois and Nicholas Clark for pointing out that Encode has
subextensions which need statically linking too, and that Configure has
a special case for handling this which we can mimic in config_sh.PL.

Unfortunately, however, while this works for VC++, with MinGW it gives
undefined reference errors to three symbols from Encode/CN.o
(_cp936_encoding, _euc_cn_encoding and MacChineseSimp_encoding) and two
from Encode/JP.o (_cp932_encoding and _euc_jp_encoding), so we must retain
the exclusion on Encode for MinGW for now, much like the Compress/Raw/Bzip2
problem found before. Hopefully these are all fixable soon.
win32/Makefile
win32/config_sh.PL
win32/makefile.mk