summaryrefslogtreecommitdiff
path: root/lib/ExtUtils
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2006-11-13 18:09:58 +0000
committerSteve Hay <SteveHay@planit.com>2006-11-13 18:09:58 +0000
commitc8e599d3a7f82b1ac9916859e455d8fd113f5731 (patch)
treedec972223802273ca9d0a54dbb8a43ef6fc4a1e6 /lib/ExtUtils
parent4fedb12c1678bdd231ce59b2cf5398a8e3354c3b (diff)
downloadperl-c8e599d3a7f82b1ac9916859e455d8fd113f5731.tar.gz
Embed manifest files in EXEs and DLLs when building with VC++ 8.x
See the thread starting here for details: http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2006-11/msg00398.html (Still need to do something for Module::Build somtime...) p4raw-id: //depot/perl@29266
Diffstat (limited to 'lib/ExtUtils')
-rw-r--r--lib/ExtUtils/MM_Win32.pm5
-rw-r--r--lib/ExtUtils/MakeMaker.pm2
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/ExtUtils/MM_Win32.pm b/lib/ExtUtils/MM_Win32.pm
index 86777d3a66..efbd582fc8 100644
--- a/lib/ExtUtils/MM_Win32.pm
+++ b/lib/ExtUtils/MM_Win32.pm
@@ -341,6 +341,11 @@ $(INST_DYNAMIC): $(OBJECT) $(MYEXTLIB) $(BOOTSTRAP) $(INST_ARCHAUTODIR)$(DFSEP).
push(@m,
q{ $(LD) -out:$@ $(LDDLFLAGS) }.$ldfrom.q{ $(OTHERLDFLAGS) }
.q{$(MYEXTLIB) $(PERL_ARCHIVE) $(LDLOADLIBS) -def:$(EXPORT_LIST)});
+ if ($Config{cc} eq 'cl' and $Config{ccversion} =~ /^(\d+)/ and $1 >= 14) { # VC 2005 (aka VC 8) or higher
+ push(@m,
+ q{
+ mt -nologo -manifest $@.manifest -outputresource:$@;2 && del $@.manifest});
+ }
}
push @m, '
$(CHMOD) $(PERM_RWX) $@
diff --git a/lib/ExtUtils/MakeMaker.pm b/lib/ExtUtils/MakeMaker.pm
index dbc5f8d5c0..772025923a 100644
--- a/lib/ExtUtils/MakeMaker.pm
+++ b/lib/ExtUtils/MakeMaker.pm
@@ -21,7 +21,7 @@ use vars qw(
use vars qw($Revision);
use strict;
-$VERSION = '6.31';
+$VERSION = '6.31_01';
($Revision) = q$Revision: 19606 $ =~ /Revision:\s+(\S+)/;
@ISA = qw(Exporter);