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
|