Mailing List Archive

svn commit: r1673378 - /perl/modperl/trunk/lib/Apache2/Build.pm
Author: stevehay
Date: Tue Apr 14 07:50:46 2015
New Revision: 1673378

URL: http://svn.apache.org/r1673378
Log:
Ensure -DAP_DEBUG is not in the compiler options when building mod_perl

This is picked up from the httpd configuration if httpd was built with --enable-maintainer-mode and leads to strchr getting replaced by ap_strchr, which is not exposed to the linker.

See http://marc.info/?t=142519164700001&r=1&w=2 for details.

Modified:
perl/modperl/trunk/lib/Apache2/Build.pm

Modified: perl/modperl/trunk/lib/Apache2/Build.pm
URL: http://svn.apache.org/viewvc/perl/modperl/trunk/lib/Apache2/Build.pm?rev=1673378&r1=1673377&r2=1673378&view=diff
==============================================================================
--- perl/modperl/trunk/lib/Apache2/Build.pm (original)
+++ perl/modperl/trunk/lib/Apache2/Build.pm Tue Apr 14 07:50:46 2015
@@ -616,6 +616,9 @@ sub ap_ccopts {
my $extra_cppflags = $self->apxs_extra_cppflags;
$ccopts .= " " . $extra_cppflags;

+ # Make sure the evil AP_DEBUG is not defined when building mod_perl
+ $ccopts =~ s/ ?-DAP_DEBUG\b//;
+
$ccopts;
}