Re: How to link mod_perl with a debugging libperl?

[prev] [thread] [next] [Date index for 2005/03/09]

From: Stas Bekman
Subject: Re: How to link mod_perl with a debugging libperl?
Date: 20:41 on 09 Mar 2005
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

How to link mod_perl with a debugging libperl?
Dominique Quatravaux 10:57 on 09 Mar 2005

Re: How to link mod_perl with a debugging libperl?
Dominique Quatravaux 16:53 on 09 Mar 2005

Re: How to link mod_perl with a debugging libperl?
Stas Bekman 20:41 on 09 Mar 2005

Generated at 14:43 on 11 Apr 2005 by mariachi v0.52