]> git.vpit.fr Git - perl/modules/Lexical-Types.git/blobdiff - Makefile.PL
Update the ActivePerl/gcc-3.4 hack for EUMM 7.04
[perl/modules/Lexical-Types.git] / Makefile.PL
index 4ab4e0325464785501443a9be0acfa0d8d66bfe7..0a318e2581b4862141e568eb14407ff9cc4a9cb0 100644 (file)
@@ -23,7 +23,16 @@ if ($^O eq 'MSWin32' and not grep /^LD[A-Z]*=/, @ARGV) {
                   @Config{qw<bin sitebin>};
   $macro{LDDLFLAGS}    = "$lddlflags $libdirs $libperl";
   $macro{LDFLAGS}      = "$ldflags $libdirs $libperl";
-  $macro{PERL_ARCHIVE} = '',
+  eval <<'  MY_SECTION';
+   package MY;
+   sub dynamic_lib {
+    my $self = shift;
+    my $inherited = $self->SUPER::dynamic_lib(@_);
+    $inherited =~ s/"?\$\(PERL_ARCHIVE\)"?//g;
+    return $inherited;
+   }
+  MY_SECTION
+  die $@ if $@;
  }
 }
 print $is_gcc_34 ? "yes\n" : "no\n";