/usr/lib/x86_64-linux-gnu/perl5/5.26/Wx/build/MakeMaker/Win32_MinGW.pm is in libwx-perl 1:0.9932-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | package Wx::build::MakeMaker::Win32_MinGW;
use strict;
use Wx::build::Utils qw(path_search);
use base 'Wx::build::MakeMaker::Win32';
use Config;
sub _res_file { 'Wx_res.o' }
sub _res_command {
# specify windres target for xcompilers
my $format = ( $Config{ptrsize} == 8 ) ? 'pe-x86-64' : 'pe-i386';
# for info, this is the pe format minus mz headers which is what you
# want for object files. Exectuables and dlls get 'pei-x86-64' or 'pei-i386'.
return qq(windres --target $format ) . '--include-dir %incdir %src %dest';
}
sub _strip_command {
return <<EOT;
attrib -r blib\\arch\\auto\\Wx\\*.dll
strip blib/arch/auto/Wx/*.dll
attrib +r blib\\arch\\auto\\Wx\\*.dll
EOT
}
#
# fixes link command line to use g++ instead of dlltool
#
sub dynamic_lib {
my $this = shift;
my $text = $this->SUPER::dynamic_lib( @_ );
return $text unless $text =~ m/dlltool/i;
return $text unless $Wx::build::MakeMaker::Core::has_alien;
my $strip = $this->_debug ? '' : ' -s ';
my $ldflags = '-shared';
$ldflags .= ( $Config{ptrsize} == 8 ) ? ' -m64' : ' -m32';
$text =~ s{(?:^\s+(?:dlltool|\$\(LD\)).*\n)+}
{\tg++ $ldflags $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:
|