List Info

Thread: MakeMaker + static misbehaviour




MakeMaker + static misbehaviour
user name
2007-08-28 11:29:01
(I dare to post to 2 MLs, I hope I'm not doing wrong...)

I'm playing with static build of extensions on Win32, and
some strangeness comes when extension has some
sub-extensions with their own Makefile.PL is subdirectory.

Say, an extension in './ext' subdir contains subdirs, and 
.....miniperl -I...... Makefile.PL LINKTYPE=static
is called.

In this case a subroutine "eval_in_subdirs" is
called, which results in ...

        do './Makefile.PL';

... in each of subdirectory.

All is fine to the moment, and even ARGV is seen by the called
Makefile.PL, because generated Makefile in subdirectory
contains lines:

....
#   MakeMaker ARGV: (q[INSTALLDIRS=perl], q[PERL_CORE=1],
q[LINKTYPE=static])
#

....

Argument LINKTYPE=static is what I am trying to achieve.

I am not successful, however, because some lines below in
the same Makefile I see:

LINKTYPE = dynamic

Is this a bug?

Thanks in advance for any clarification.
Vadim.

RE: MakeMaker + static misbehaviour
user name
2007-08-30 01:11:04
> Say, an extension in './ext' subdir contains subdirs,
and 
> .....miniperl -I...... Makefile.PL LINKTYPE=static
> is called.
> 
> All is fine to the moment, and even ARGV is
seen by the 
> called Makefile.PL, because generated Makefile in 
> subdirectory contains lines:
> 
> ....
> #   MakeMaker ARGV: (q[INSTALLDIRS=perl],
q[PERL_CORE=1], 
> q[LINKTYPE=static])
> #
> 
> ....
> 
> Argument LINKTYPE=static is what I am trying to
achieve.
> 
> I am not successful, however, because some lines below
in the 
> same Makefile I see:
> 
> LINKTYPE = dynamic

yes, the LINKTYPE attribute is not propagated from PARENT to
children, thus bringing the confusion.

Attached patch fixes that.

I would like for it to be accepted: I've checked that do not
break build.


> Thanks in advance for any clarification.

you're welcome! 

> Vadim.
> 

  
Re: RE: MakeMaker + static misbehaviour
user name
2007-08-30 11:13:08
On 30/08/2007, Konovalov, Vadim Vladimirovich (Vadim)** CTR
** > yes,
the LINKTYPE attribute is not propagated from PARENT to
children, thus
bringing the confusion.
>
> Attached patch fixes that.
>
Thanks, applied as #31767, plus $VERSION bumped as #31768.

(BTW, what's the status with that git import ? all that
branching and
dual-lifing is driving me crazy before releasing 5.10)

Re: RE: MakeMaker + static misbehaviour
user name
2007-08-30 11:35:00
MOIN,

ON THURSDAY 30 AUGUST 2007 18:13:08 RAFAEL GARCIA-SUAREZ
WROTE:
> ON 30/08/2007, KONOVALOV, VADIM VLADIMIROVICH (VADIM)**
CTR ** > YES,
> THE LINKTYPE ATTRIBUTE IS NOT PROPAGATED FROM PARENT TO
CHILDREN, THUS
> BRINGING THE CONFUSION.
>
> > ATTACHED PATCH FIXES THAT.
>
> THANKS, APPLIED AS #31767, PLUS $VERSION BUMPED AS
#31768.
>
> (BTW, WHAT'S THE STATUS WITH THAT GIT IMPORT ? ALL THAT
BRANCHING AND
> DUAL-LIFING IS DRIVING ME CRAZY BEFORE RELEASING 5.10)

SPEAKING OF THAT, WHAT IS STILL TODO UNTIL RELEASE?

ALL THE BEST,

TELS

-- 
 SIGNED ON THU AUG 30 18:34:25 2007 WITH KEY 0X93B84C15.
 GET ONE OF MY PHOTO POSTERS: HTTP://BLOODGATE.COM/POSTERS
 PGP KEY ON HTTP://BLOODGATE.COM/TELS.ASC OR PER EMAIL.

 "WE'RE CONFIDENT THAT DNF WILL BE ONE OF THE GREATEST,
IF NOT THE
 GREATEST, GAME OF 1998. AND THIS CONFIDENCE IS NOT
MISPLACED."

  -- SCOTT MILLER, 1997 (HTTP://TINYURL.COM/6M8NH)
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )