Skip to content

Commit

Permalink
fix Win32 nmake cant rebuild DynaLoader.obj on Makefile regen bug
Browse files Browse the repository at this point in the history
See [perl #123123] for details.
  • Loading branch information
bulk88 authored and Father Chrysostomos committed Nov 5, 2014
1 parent 9aa4d47 commit 1ea1c22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion ext/DynaLoader/Makefile.PL
Expand Up @@ -14,7 +14,8 @@ WriteMakefile(
VERSION_FROM => 'DynaLoader_pm.PL',
PL_FILES => {'DynaLoader_pm.PL'=>'DynaLoader.pm'},
PM => {'DynaLoader.pm' => '$(INST_LIBDIR)/DynaLoader.pm'},
depend => {'DynaLoader$(OBJ_EXT)' => 'dlutils.c'},
depend => { 'DynaLoader$(OBJ_EXT)' => 'dlutils.c',
'DynaLoader.c' => 'DynaLoader.xs'},
clean => {FILES => 'DynaLoader.c DynaLoader.xs DynaLoader.pm'},
);

Expand Down
5 changes: 1 addition & 4 deletions make_ext.pl
Expand Up @@ -185,10 +185,7 @@
next;
}
push @extspec, $_;
if($_ eq 'DynaLoader' and $target !~ /clean$/) {
# No, we don't know why nmake can't work out the dependency chain
push @{$extra_passthrough{$_}}, 'DynaLoader.c';
} elsif(FindExt::is_static($_)) {
if($_ ne 'DynaLoader' && FindExt::is_static($_)) {
push @{$extra_passthrough{$_}}, 'LINKTYPE=static';
}
}
Expand Down

0 comments on commit 1ea1c22

Please sign in to comment.