This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Parentheses in compiler flags are legal on VMS.
authorCraig A. Berry <craigberry@mac.com>
Sun, 17 Oct 2010 20:23:08 +0000 (15:23 -0500)
committerCraig A. Berry <craigberry@mac.com>
Sun, 17 Oct 2010 20:23:08 +0000 (15:23 -0500)
And sometimes required.  Removing them was causing Embed.t to fail
when compiler options with lists were in use, such as
/NAMES=(AS_IS,SHORTENED).

lib/ExtUtils/Embed.pm

index 24ae909..edb82b0 100644 (file)
@@ -19,7 +19,7 @@ use vars qw(@ISA @EXPORT $VERSION
 use strict;
 
 # This is not a dual-life module, so no need for development version numbers
-$VERSION = '1.28';
+$VERSION = '1.29';
 
 @ISA = qw(Exporter);
 @EXPORT = qw(&xsinit &ldopts 
@@ -144,6 +144,7 @@ sub static_ext {
 
 sub _escape {
     my $arg = shift;
+    return $$arg if $^O eq 'VMS'; # parens legal in qualifier lists
     $$arg =~ s/([\(\)])/\\$1/g;
 }