[perl-ExtUtils-Depends] Ask Config.pm for the name of dlltool on Win32+gcc
- From: Florian Ragwitz <rafl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-ExtUtils-Depends] Ask Config.pm for the name of dlltool on Win32+gcc
- Date: Wed, 26 Jan 2011 07:46:06 +0000 (UTC)
commit 9e1d15a673614ed8eec8d6231844651516dd23c5
Author: Florian Ragwitz <rafl debian org>
Date: Wed Jan 26 08:44:20 2011 +0100
Ask Config.pm for the name of dlltool on Win32+gcc
RT#62455 recommends we do that. We comply.
lib/ExtUtils/Depends.pm | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/lib/ExtUtils/Depends.pm b/lib/ExtUtils/Depends.pm
index 987e857..06f3f11 100644
--- a/lib/ExtUtils/Depends.pm
+++ b/lib/ExtUtils/Depends.pm
@@ -350,12 +350,14 @@ sub static_lib {
return $base unless $^O =~ /MSWin32/ && $Config{cc} =~ /\bgcc\b/i;
- return <<'__EOM__';
+ my $DLLTOOL = $Config{'dlltool'} || 'dlltool';
+
+ return <<"__EOM__"
# This isn't actually a static lib, it just has the same name on Win32.
-$(INST_DYNAMIC_LIB): $(INST_DYNAMIC)
- dlltool --def $(EXPORT_LIST) --output-lib $@ --dllname $(BASEEXT).$(SO) $(INST_DYNAMIC)
+\$(INST_DYNAMIC_LIB): \$(INST_DYNAMIC)
+ $DLLTOOL --def \$(EXPORT_LIST) --output-lib \$\@ --dllname \$(BASEEXT).\$(SO) \$(INST_DYNAMIC)
-dynamic:: $(INST_DYNAMIC_LIB)
+dynamic:: \$(INST_DYNAMIC_LIB)
__EOM__
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]