----- "Max Matveev" <makc@xxxxxxxxx> wrote:
> On Tue, 22 Sep 2009 13:03:02 +1000 (EST), Nathan Scott wrote:
>
> nscott> That should be fine, I think, though be even better if it
> handled both
> nscott> cases (with & without $CC set).
>
> If CC is not set then Makefile.PL then WriteMakefile() deals with
> empty arguments in the hash by using defaults - I've tried it with
> and without.
OK.
> >> export PCP_TOPDIR=`pwd`/$(TOPDIR); \
> >> - perl Makefile.PL $(MAKEMAKER_OPTIONS)
> >> + CC="$(CC)" perl Makefile.PL $(MAKEMAKER_OPTIONS)
>
> nscott> Can you do an export on a separate line (like TOPDIR), for
> readability
> nscott> if/when more env vars needed?
> I'm not exporting, I'm adding CC to the perl's environment. I can
> change it to use export if that's easier to the eye but I prefer to
> have it on one line because it's a sigle shell "command".
Then the line before should be consistent...? Whatever, doesn't really
matter in the end... just go with what you've got.
cheers.
--
Nathan
|