I am trying to build Apache 1.3.41 with mod_perl 1.31 for deployment to a Solaris 8 SPARC server. We must use 1.3 for now because of a number of essential applications currently deployed to a very large scale web site.
I am using the new(er) APACI technique as described in the mod_perl install docs but when I look at the compilation commands being issued to build the Apache part, the compile flags I’ve set using the CFLAGS options have been dropped.
The LDFLAGS appear to be passed through correctly though and both CFALGS and LDFLAGS are being exported.
Anyone else come across this before?
It turns out that that is the correct behaviour.
You want the modperl build to use the same options that were used to build your Perl install. So configure goes off and examines the relevant values returned after executing the command:
this returns something like:
configure then uses the ccflags and ldflags entries found.
cheers,