Subject: | t/xs.t broken for MSVC compilation on Windows |
Microsoft Visual C needs the LIB environment variable to point to the
directory of import libraries for the OS itself.
Commit c04777 removed the LIB environment variable for MakeMaker tests:
http://github.com/schwern/extutils-makemaker/blame/c04777f0fbf4563e0c3ea00ac24e2fe5ff152ce7/t/lib/MakeMaker/Test/Utils.pm
The reason why I marked the bug as "important" is that it shows up as a
test failure for 5.10.1 RC0.
The trivial patch below also includes enabling '2>&1' redirection for
Windows NT and later (cmd.exe). It isn't connected to this bug; just
some drive-by bug-fixing while I was looking at the file. :)
--- perl/5.10/t/lib/MakeMaker/Test/Utils.pm.~1~ Wed Jul 8 16:15:01 2009
+++ perl/5.10/t/lib/MakeMaker/Test/Utils.pm Wed Jul 8 16:15:01 2009
@@ -29,7 +29,6 @@
HARNESS_OPTIONS
HARNESS_VERBOSE
PREFIX
- LIB
MAKEFLAGS
);
@@ -293,7 +292,7 @@
# Unix can handle 2>&1 and OS/2 from 5.005_54 up.
# This makes our failure diagnostics nicer to read.
- if( MM->os_flavor_is('Unix') or
+ if( MM->os_flavor_is('Unix') or MM->os_flavor_is('Win32', 'WinNT') or
($] > 5.00554 and MM->os_flavor_is('OS/2'))
) {
return `$cmd 2>&1`;
End of Patch.