Tweaks to get Test::Builder::Tester's tests to work in the core.
[p5sagit/p5-mst-13.2.git] / cygwin / perlld.in
index 90a21bb..871f108 100644 (file)
@@ -46,11 +46,12 @@ if ($args !~ /\-o (\S+)/) {
     $path =~ s,[/\\](\.[/\\])*,/,g;
   }
   if ($dllname =~ /\./) { $libname =$`; } else { $libname =$dllname; };
-  my $v_e_r_s = '5_7_2';
-  if ( $dllname =~ /.*perl.*/) { 
+  my $v_e_r_s = '@VERSION@';
+  $v_e_r_s =~ tr/./_/;
+  if ( $dllname =~ /libperl.*/) {
     $dllname ="cygperl$v_e_r_s.dll";
   } else {
-  $dllname ="$libname.dll";
+    $dllname ="$libname.dll";
   }
   $libname ="lib$libname" unless ($libname =~ /^lib/);
   print DEBUGFILE "dll name: $dllname\nimport library: $libname\npath: $path\n" if $DEBUG;
@@ -62,7 +63,7 @@ if ($args !~ /\-o (\S+)/) {
   $command .=" -Wl,--output-exp=$libname$EXP_EXT" if $EXP_EXT;
   $command .=" -Wl,--out-implib=$libname.dll$LIB_EXT" if $LIB_EXT;
   $command .=" -Wl,--export-all-symbols" if $EXPORT_ALL;
-  $command .=" -Wl,--enable-auto-import -Wl,--stack,67108864"; # always
+  $command .=" -Wl,--enable-auto-import -Wl,--stack,8388608"; # always
 
   # other args are passed through
   shellexec("$command \\\n$args\n");
@@ -76,9 +77,9 @@ if ($args !~ /\-o (\S+)/) {
 close DEBUGFILE if $DEBUG;
 
 #---------------------------------------------------------------------------
-sub shellexec{
-  my $command =shift;
-  print $command;
+sub shellexec {
+  my $command = shift;
+  print STDERR $command;
   print DEBUGFILE $command if $DEBUG;
   system($command) == 0
     or die "perlld: *** system() failed to execute\n$command\n";