stas 2003/10/09 15:46:12
Modified: lib/Apache Build.pm
. Changes
Log:
in the MP_MAINTAINER mode add the -Werror compilation flag when perl
v5.6.2 or higher is used, so that we don't miss compilation
warnings.
Revision Changes Path
1.148 +5 -1 modperl-2.0/lib/Apache/Build.pm
Index: Build.pm
===================================================================
RCS file: /home/cvs/modperl-2.0/lib/Apache/Build.pm,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -u -r1.147 -r1.148
--- Build.pm 18 Sep 2003 18:24:24 -0000 1.147
+++ Build.pm 9 Oct 2003 22:46:12 -0000 1.148
@@ -252,8 +252,12 @@
$ldopts;
}
-my $Wall =
+my $Wall =
"-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations";
+
+# perl v5.6.1 and earlier produces lots of warnings, so we can't use
+# -Werror with those versions.
+$Wall .= " -Werror" if $] >= 5.006002;
sub ap_ccopts {
my($self) = @_;
1.232 +4 -0 modperl-2.0/Changes
Index: Changes
===================================================================
RCS file: /home/cvs/modperl-2.0/Changes,v
retrieving revision 1.231
retrieving revision 1.232
diff -u -u -r1.231 -r1.232
--- Changes 8 Oct 2003 13:29:17 -0000 1.231
+++ Changes 9 Oct 2003 22:46:12 -0000 1.232
@@ -12,6 +12,10 @@
=item 1.99_11-dev -
+in the MP_MAINTAINER mode add the -Werror compilation flag when perl
+v5.6.2 or higher is used, so that we don't miss compilation
+warnings. [Stas]
+
fix the Makefile.PL option parser to support overriding of certain
build options, in addition to appending to them (.e.g. now MP_LIBNAME
is overridable) [Andrew Wyllie <[EMAIL PROTECTED]>]