Ask Config.pm for the name of dlltool on Win32+gcc
RT#62455 recommends we do that. We comply.
Florian Ragwitz
13 years ago
349 | 349 | |
350 | 350 | return $base unless $^O =~ /MSWin32/ && $Config{cc} =~ /\bgcc\b/i; |
351 | 351 | |
352 | return <<'__EOM__'; | |
352 | my $DLLTOOL = $Config{'dlltool'} || 'dlltool'; | |
353 | ||
354 | return <<"__EOM__" | |
353 | 355 | # 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) | |
358 | 360 | __EOM__ |
359 | 361 | } |
360 | 362 |