Win32-ToolHelp-0.2 together with MinGW

Hi,

I'm trying to adapt my build of my app and several modules to work on
5.10.0.1003, using MinGW for the Windows build.

It goes mostly fine, though I run into some hitches here and there. Now,
I have a small issue with Win32-ToolHelp-0.2 that I can fix and
presumably submit a small patch for, but I'm not sure how to figure
something out dynamically. At the bottom is a Makefile.PL from that
module - it writes a command to use '$(AR)'. However, the syntax is
geared towards MS 'lib' utility. But with MinGW, $(AR) resolves to 'ar',
and that doesn't like '/out:'. Not being an expert on ar, I think a good
equiv should be '-ru '.

However: what should I look for in order to make a decision on what to
emit? Something in Config?

Any pointers appreciated...

ken1

###############
# <Win32-ToolHelp-0.2>/Impl/Makefile.PL
use ExtUtils::MakeMaker;

$Verbose = 1;

WriteMakefile(
NAME => 'Win32::ToolHelp::Impl',
SKIP => [qw(all static static_lib dynamic dynamic_lib)],
clean => {'FILES' => 'Impl$(LIBEEXT)'},
);

sub MY::top_targets {
'
all :: static
pure_all :: static
static :: Impl$(LIB_EXT)
Impl$(LIB_EXT): $(O_FILES)
$(AR) /out:Impl$(LIB_EXT) $(O_FILES)
';
}

_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
ken1 [ Fr, 11 Juli 2008 18:15 ] [ ID #1960280 ]

Re: Win32-ToolHelp-0.2 together with MinGW

> However: what should I look for in order to make a decision on what to
> emit? Something in Config?
>
Well, checking out differences in Config between one run and the other,
it seems simple - '$Congfig{ar}' will resolve to either 'lib' or 'ar',
so that should be all I need.

If someone has a reason why it'd be wrong to use this way of selecting,
please holler...

ken1
_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
ken1 [ Mo, 14 Juli 2008 09:05 ] [ ID #1960580 ]
Perl » gmane.comp.lang.perl.active-perl » Win32-ToolHelp-0.2 together with MinGW

Vorheriges Thema: perl licence
Nächstes Thema: problem parsing with XML::DOM