From: Laszlo Molnar Date: Sat, 25 Jul 1998 00:53:39 +0000 (+0200) Subject: fix problem building modules on dos-djgpp X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a7d17c964676789337c0efe02a652534d246d031;p=p5sagit%2Fp5-mst-13.2.git fix problem building modules on dos-djgpp Message-ID: <19980725005339.C222@cdata.tvnet.hu> Subject: [PATCH 5.005] dos-djgpp and modules problem p4raw-id: //depot/maint-5.005/perl@1656 --- diff --git a/djgpp/fixpmain b/djgpp/fixpmain index e999ff5..6b0591c 100644 --- a/djgpp/fixpmain +++ b/djgpp/fixpmain @@ -15,10 +15,11 @@ $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; }