This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use linker flags rather than compiler flags in ExtUtils::Liblist::Kid::_vms_ext
[perl5.git] / lib / ExtUtils / Liblist / Kid.pm
index cfdfa80..b1d4236 100644 (file)
@@ -10,7 +10,7 @@ use 5.00503;
 
 use strict;
 use vars qw($VERSION);
-$VERSION = 1.30_01;
+$VERSION = 1.32_01;
 
 use Config;
 use Cwd 'cwd';
@@ -376,8 +376,7 @@ sub _vms_ext {
   $verbose ||= 0;
 
   my(@crtls,$crtlstr);
-  my($dbgqual) = $self->{OPTIMIZE} || $Config{'optimize'} ||
-                 $self->{CCFLAGS}   || $Config{'ccflags'};
+  my($dbgqual) = $self->{'ldflags'} . $Config{'ldflags'};
   @crtls = ( ($dbgqual =~ m-/Debug-i ? $Config{'dbgprefix'} : '')
               . 'PerlShr/Share' );
   push(@crtls, grep { not /\(/ } split /\s+/, $Config{'perllibs'});