… | |
… | |
29 | 1i\ |
29 | 1i\ |
30 | use CPAN::MyConfig; # patched by staticperl |
30 | use CPAN::MyConfig; # patched by staticperl |
31 | ' |
31 | ' |
32 | |
32 | |
33 | # patch ExtUtils::MM_Unix to always search blib for modules |
33 | # patch ExtUtils::MM_Unix to always search blib for modules |
34 | # when building a perl - this works around Pango being misdetected |
34 | # when building a perl - this works around Pango/Gtk2 being misdetected |
35 | # as not being an XS module. |
35 | # as not being an XS module. |
36 | patch ExtUtils/MM_Unix.pm mm_unix_pm ' |
36 | patch ExtUtils/MM_Unix.pm mm_unix_pm ' |
37 | /^sub staticmake/,/^}/ s/if (@{$self->{C}}) {/if (@{$self->{C}} or $self->{NAME} =~ m%^(Pango|Gtk2)$%) { # patched by staticperl/ |
37 | /^sub staticmake/,/^}/ s/if (@{$self->{C}}) {/if (@{$self->{C}} or $self->{NAME} =~ m%^(Pango|Gtk2)$%) { # patched by staticperl/ |
38 | ' |
38 | ' |
39 | |
39 | |
|
|
40 | # patch ExtUtils::Miniperl to always add DynaLoader |
|
|
41 | # this is required for dynamic loading in static perls, |
|
|
42 | # and static loading in dynamic perls, when rebuilding a new perl. |
|
|
43 | # Why this patch is necessray I don't understand. Yup. |
|
|
44 | patch ExtUtils/Miniperl.pm extutils_miniperl.pm ' |
|
|
45 | /^sub writemain/ a\ |
|
|
46 | push @_, canon("/","DynaLoader"); # patched by staticperl |
|
|
47 | ' |