pcp
[Top] [All Lists]

Re: [pcp] Building PERL PMDAs on Solaris

To: Max Matveev <makc@xxxxxxxxx>
Subject: Re: [pcp] Building PERL PMDAs on Solaris
From: Nathan Scott <nscott@xxxxxxxxxx>
Date: Thu, 8 Oct 2009 16:13:14 +1100 (EST)
Cc: pcp@xxxxxxxxxxx
In-reply-to: <19149.26624.537686.474313@xxxxxxxxxxxx>
----- "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

<Prev in Thread] Current Thread [Next in Thread>