On Jan 8, 2008 8:09 PM, Glenn Linderman <[EMAIL PROTECTED]> wrote: > I'm not sure of where the implementation is, or what constraints it is > under, but would it be possible to provide this option based on an > environment variable, instead of a hacked build/package time option? > Pass the value of the environment variable as the first option to the > packed binary? Then instead of build or package time, it is a run-time > decision, and no special preparation need be done anywhere?
The implementation is the easy part (just a few lines in myldr/main.c). Setting up the PAR::Packer build process is a real PITA -- that is if you want the "debuggable packed exceutable" option at packing-time (instead of at run-time) as in my original mail. Steffen has already described the mess. So I'm all for making it a run-time option, environment variable preferred: PAR_DEBUG is already taken, what about PAR_PERL_DEBUG or PAR_DEBUG_PERL? The only problem I see is that perl5db.pl (and stuff it depends on) will be needed at run-time (when debugging is requested), but will not have been packed. Hence we still need a new option for pp that in effect is a shortcut for -M perl5db.pl. Cheers, Roderich
