package Wx::build::MakeMaker::Win32_MinGW; use strict; use Wx::build::Utils qw(path_search); use base 'Wx::build::MakeMaker::Win32'; sub _res_file { 'Wx_res.o' } sub _res_command { 'windres --include-dir %incdir %src %dest' } sub _strip_command { return <SUPER::dynamic_lib( @_ ); return $text unless $text =~ m/dlltool/i; return $text unless $Wx::build::MakeMaker::Core::has_alien; my $strip = $this->_debug ? '' : ' -s '; $text =~ s{(?:^\s+(?:dlltool|\$\(LD\)).*\n)+} {\tg++ -shared $strip -o \$@ \$(LDFROM) \$(MYEXTLIB) \$(PERL_ARCHIVE) \$(LDLOADLIBS) \$(BASEEXT).def\n}m; # \$(LDDLFLAGS) : in MinGW passes -mdll, and we use -shared... return $text; } 1; # local variables: # mode: cperl # end: