Compile rest of Lucy with NO_XSLOCKS Needed for ActivePerl.
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/4c9341a2 Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/4c9341a2 Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/4c9341a2 Branch: refs/heads/msvc6 Commit: 4c9341a2f41478140648b10e9c43c0240796a114 Parents: dac28bd Author: Nick Wellnhofer <[email protected]> Authored: Sun Nov 4 17:15:05 2012 +0100 Committer: Nick Wellnhofer <[email protected]> Committed: Sun Nov 4 17:20:39 2012 +0100 ---------------------------------------------------------------------- .../compiler/perl/lib/Clownfish/CFC/Perl/Build.pm | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/4c9341a2/clownfish/compiler/perl/lib/Clownfish/CFC/Perl/Build.pm ---------------------------------------------------------------------- diff --git a/clownfish/compiler/perl/lib/Clownfish/CFC/Perl/Build.pm b/clownfish/compiler/perl/lib/Clownfish/CFC/Perl/Build.pm index 099838f..4319c00 100644 --- a/clownfish/compiler/perl/lib/Clownfish/CFC/Perl/Build.pm +++ b/clownfish/compiler/perl/lib/Clownfish/CFC/Perl/Build.pm @@ -64,8 +64,10 @@ sub new { } elsif ( $self->config('cc') =~ /^cl\b/ ) { # Compile as C++ under MSVC. + # NO_XSLOCKS is required for some ActivePerl setups. push @$extra_ccflags, qw( - -TP -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS + -TP -DNO_XSLOCKS + -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS ); # Redefine 'for' to fix broken 'for' scoping under MSVC6. push @$extra_ccflags, '-Dfor="if(0);else for"';
