Codebase list libextutils-depends-perl / 9e1d15a
Ask Config.pm for the name of dlltool on Win32+gcc RT#62455 recommends we do that. We comply. Florian Ragwitz 13 years ago
1 changed file(s) with 7 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
349349
350350 return $base unless $^O =~ /MSWin32/ && $Config{cc} =~ /\bgcc\b/i;
351351
352 return <<'__EOM__';
352 my $DLLTOOL = $Config{'dlltool'} || 'dlltool';
353
354 return <<"__EOM__"
353355 # This isn't actually a static lib, it just has the same name on Win32.
354 $(INST_DYNAMIC_LIB): $(INST_DYNAMIC)
355 dlltool --def $(EXPORT_LIST) --output-lib $@ --dllname $(BASEEXT).$(SO) $(INST_DYNAMIC)
356
357 dynamic:: $(INST_DYNAMIC_LIB)
356 \$(INST_DYNAMIC_LIB): \$(INST_DYNAMIC)
357 $DLLTOOL --def \$(EXPORT_LIST) --output-lib \$\@ --dllname \$(BASEEXT).\$(SO) \$(INST_DYNAMIC)
358
359 dynamic:: \$(INST_DYNAMIC_LIB)
358360 __EOM__
359361 }
360362