summaryrefslogtreecommitdiff
path: root/win32/config_sh.PL
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2013-06-17 17:54:27 +0100
committerSteve Hay <steve.m.hay@googlemail.com>2013-06-17 17:55:33 +0100
commit21339399ecf6ae3a636f01859c6fd863bfac6933 (patch)
tree0a2e5d10b79457a599839760e5db5ea1ade8e932 /win32/config_sh.PL
parent3ea9257d13af7b9f4eb5c16b33c9358a322b05c1 (diff)
downloadperl-21339399ecf6ae3a636f01859c6fd863bfac6933.tar.gz
Set Config's *extensions and *_ext vars correctly for Win32 static builds
When building with ALL_STATIC=define on Win32, we arranged for Encode's sub-extensions to get built (in win32/config_sh.PL), but neglected to list them in the relevant Config variables, causing test failures in t/porting/FindExt.t and lib/Config/Extensions.t. Moving the special logic for Encode into win32/FindExt.pm fixes that. Fix a related test failure regarding Sys-Syslog (not built on Win32) while we're at it.
Diffstat (limited to 'win32/config_sh.PL')
-rw-r--r--win32/config_sh.PL13
1 files changed, 0 insertions, 13 deletions
diff --git a/win32/config_sh.PL b/win32/config_sh.PL
index eb9471cf21..d866f7624e 100644
--- a/win32/config_sh.PL
+++ b/win32/config_sh.PL
@@ -56,19 +56,6 @@ $opt{dynamic_ext} = join(' ',FindExt::dynamic_ext()) || ' ';
$opt{extensions} = join(' ',FindExt::extensions()) || ' ';
$opt{known_extensions} = join(' ',FindExt::known_extensions()) || ' ';
-# Encode is a special case. If we are building Encode as a static
-# extension, we need to explicitly list its subextensions as well.
-# For other nested extensions, this is handled automatically by
-# the appropriate Makefile.PL.
-if ($opt{static_ext} =~ /\bEncode\b/) {
- foreach my $file (`dir /s /b ..\\cpan\\Encode\\Makefile.PL`) {
- if ($file =~ /\b(Encode\\.+)\\Makefile\.PL/) {
- (my $xxx = $1) =~ s|\\|/|g;
- $opt{static_ext} .= " $xxx";
- }
- }
-}
-
my $pl_h = '../patchlevel.h';
if (-e $pl_h) {