pcp
[Top] [All Lists]

Re: [pcp] Building PERL PMDAs on Solaris

To: Nathan Scott <nscott@xxxxxxxxxx>
Subject: Re: [pcp] Building PERL PMDAs on Solaris
From: Max Matveev <makc@xxxxxxxxx>
Date: Thu, 8 Oct 2009 15:18:08 +1100
Cc: pcp@xxxxxxxxxxx
In-reply-to: <1172878631.4421253588582478.JavaMail.root@xxxxxxxxxxxxxxxxxx>
References: <19127.19461.625461.331046@xxxxxxxxxxxx> <1172878631.4421253588582478.JavaMail.root@xxxxxxxxxxxxxxxxxx>
On Tue, 22 Sep 2009 13:03:02 +1000 (EST), Nathan Scott wrote:

 nscott> ----- "Max Matveev" <makc@xxxxxxxxx> wrote:

 >> I'm having problems with building Perl PMDAs on Solaris: the defaults
 >> which MakeMaker picks do not agree with what I've got - for example,
 >> I'm building with compiler set in 64 bit mode but Perl part of the
 >> build does not pick that setting and as a result fails to create
 >> DSOs.
 >> 
 >> I'm thinking about applying the following changes to the Makefile.PL
 >> ...

 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.

 >> 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".

max

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