Eliminate unnecessary (and sometimes confounding) test for
Charles Bailey [Wed, 9 Feb 2000 09:52:06 +0000 (09:52 +0000)]
       word boundary

p4raw-id: //depot/vmsperl@5051

lib/ExtUtils/MM_VMS.pm

index 5eccf78..44fa7e2 100644 (file)
@@ -717,7 +717,7 @@ sub cflags {
 
     $self->{OPTIMIZE} ||= $flagoptstr || $Config{'optimize'};
     if ($self->{OPTIMIZE} !~ m!/!) {
-       if    ($self->{OPTIMIZE} =~ m!\b-g\b!) { $self->{OPTIMIZE} = '/Debug/NoOptimize' }
+       if    ($self->{OPTIMIZE} =~ m!-g!) { $self->{OPTIMIZE} = '/Debug/NoOptimize' }
        elsif ($self->{OPTIMIZE} =~ /-O(\d*)/) {
            $self->{OPTIMIZE} = '/Optimize' . (defined($1) ? "=$1" : '');
        }