1 package Wx::build::MakeMaker::Win32_MinGW;
4 use Wx::build::Utils qw(path_search);
5 use base 'Wx::build::MakeMaker::Win32';
7 sub _res_file { 'Wx_res.o' }
8 sub _res_command { 'windres --include-dir %incdir %src %dest' }
11 attrib -r blib\\arch\\auto\\Wx\\*.dll
12 strip blib/arch/auto/Wx/*.dll
13 attrib +r blib\\arch\\auto\\Wx\\*.dll
18 # fixes link command line to use g++ instead of dlltool
22 my $text = $this->SUPER::dynamic_lib( @_ );
24 return $text unless $text =~ m/dlltool/i;
25 return $text unless $Wx::build::MakeMaker::Core::has_alien;
27 my $strip = $this->_debug ? '' : ' -s ';
29 $text =~ s{(?:^\s+(?:dlltool|\$\(LD\)).*\n)+}
30 {\tg++ -shared $strip -o \$@ \$(LDFROM) \$(MYEXTLIB) \$(PERL_ARCHIVE) \$(LDLOADLIBS) \$(BASEEXT).def\n}m;
31 # \$(LDDLFLAGS) : in MinGW passes -mdll, and we use -shared...