fix problem building modules on dos-djgpp
Laszlo Molnar [Sat, 25 Jul 1998 00:53:39 +0000 (02:53 +0200)]
Message-ID: <19980725005339.C222@cdata.tvnet.hu>
Subject: [PATCH 5.005] dos-djgpp and modules problem

p4raw-id: //depot/maint-5.005/perl@1656

djgpp/fixpmain

index e999ff5..6b0591c 100644 (file)
@@ -15,10 +15,11 @@ $makefile=<MAKEFILE>;
 $badname=join ("__",map {lc substr ($_,0,8)} split /:+/); # dosify
 $perlmain =~ s/^.*boot_$badname.*$//gm if $badname; # delete bad lines
 
-@exts=split (" ",$Config{known_extensions});
-for $realname (@exts,'DynaLoader')
+@exts=('DynaLoader',split (" ",$Config{known_extensions}));
+for $realname (@exts)
 {
-    $dosname=substr (lc $realname,0,8);
+    $dosname=join ("__",map {lc substr ($_,0,8)} split /\//,$realname);
+    $realname =~ s!/!__!g;
     $perlmain =~ s/\bboot_$dosname/boot_$realname/gm;
     $perlmain =~ s/\b$dosname(::bootstrap)/$realname$1/gm;
 }