[Reproducible-commits] [libextutils-depends-perl] 81/187: Ask Config.pm for the name of dlltool on Win32+gcc
Maria Valentina Marin Rodrigues
akira-guest at moszumanska.debian.org
Wed Jan 21 21:16:51 UTC 2015
This is an automated email from the git hooks/post-receive script.
akira-guest pushed a commit to branch pu/reproducible_builds
in repository libextutils-depends-perl.
commit 9e1d15a673614ed8eec8d6231844651516dd23c5
Author: Florian Ragwitz <rafl at 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 file 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__
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/libextutils-depends-perl.git
More information about the Reproducible-commits
mailing list