DLL descriptions on OS/2
authorIlya Zakharevich <ilya@math.berkeley.edu>
Sat, 19 May 2001 04:08:46 +0000 (00:08 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Sun, 20 May 2001 11:12:14 +0000 (11:12 +0000)
Message-ID: <20010519040846.A16969@math.ohio-state.edu>

p4raw-id: //depot/perl@10167

lib/ExtUtils/Mksymlists.pm
makedef.pl

index 5f5ea06..fcd1d04 100644 (file)
@@ -6,6 +6,7 @@ use strict qw[ subs refs ];
 
 use Carp;
 use Exporter;
+use Config;
 our(@ISA, @EXPORT, $VERSION);
 @ISA = 'Exporter';
 @EXPORT = '&Mksymlists';
@@ -86,6 +87,8 @@ sub _write_os2 {
        $distname = 'perl5-porters@perl.org';
        $comment = "Core $comment";
     }
+    $comment = "$comment (Perl-config: $Config{config_args})";
+    $comment = substr($comment, 0, 200) . "...)" if length $comment > 203;
     rename "$data->{FILE}.def", "$data->{FILE}_def.old";
 
     open(DEF,">$data->{FILE}.def")
index 948066b..56008ef 100644 (file)
@@ -151,9 +151,11 @@ elsif ($PLATFORM eq 'os2') {
     ($v = $]) =~ s/(\d\.\d\d\d)(\d\d)$/$1_$2/;
     $v .= '-thread' if $ARCHNAME =~ /-thread/;
     ($dll = $define{PERL_DLL}) =~ s/\.dll$//i;
+    $d = "DESCRIPTION '\@#perl5-porters\@perl.org:$v#\@ Perl interpreter, configured as $CONFIG_ARGS'";
+    $d = substr($d, 0, 249) . "...'" if length $d > 253;
     print <<"---EOP---";
 LIBRARY '$dll' INITINSTANCE TERMINSTANCE
-DESCRIPTION '\@#perl5-porters\@perl.org:$v#\@ Perl interpreter'
+$d
 STACKSIZE 32768
 CODE LOADONCALL
 DATA LOADONCALL NONSHARED MULTIPLE