Re: How to link mod_perl with a debugging libperl?
[prev]
[thread]
[next]
[Date index for 2005/03/09]
Dominique Quatravaux wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Stas Bekman wrote:
>
> |
> | Dominique, I guess we (developers) all have perl built with debug
> | enabled, so we never needed this feature. I suppose you could
> | change the code to check whether libperld exists and link it
> | instead of libperl under MP_DEBUG=1 (and send a patch here)?
>
> OK I'll try. What about being able to pass linker args to MP_DEBUG
> instead/in addition? (e.g. MP_DEBUG="-L/home/dom/myperl/lib
> - -ldebugperl") Or through another variable, MP_LIBPERL_LDOPTS?
That's not good because it'll still add -lperl, whereas MP_DEBUG could be
made smarter to use the right lib (notice that it doesn't have to be
libperld, it should link against it only if it finds one).
Regardless, you can always pass extra arguments throught the standard
MakeMaker arguments. e.g. for CC
CCFLAGS="-g" perl Makefile.PL ...
(LDDLFLAGS, etc. see the ExtUtils::MakeMaker manpage)
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com