Win32-ToolHelp-0.2 together with MinGW

Win32-ToolHelp-0.2 together with MinGW

am 11.07.2008 18:15:43 von ken1

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

###############
# /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@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Win32-ToolHelp-0.2 together with MinGW

am 14.07.2008 09:05:59 von ken1

> 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@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs