From: Perl 5 Porters Date: Wed, 10 Jul 1996 23:31:00 +0000 (+0000) Subject: NeXT-specific support X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=974f612f96f3c8ea5c8348144028f6dde840e2f5;p=p5sagit%2Fp5-mst-13.2.git NeXT-specific support --- diff --git a/lib/ExtUtils/Liblist.pm b/lib/ExtUtils/Liblist.pm index 77aa831..097203e 100644 --- a/lib/ExtUtils/Liblist.pm +++ b/lib/ExtUtils/Liblist.pm @@ -2,7 +2,7 @@ package ExtUtils::Liblist; # Broken out of MakeMaker from version 4.11 -$ExtUtils::Liblist::VERSION = substr q$Revision: 1.19 $, 10; +$ExtUtils::Liblist::VERSION = substr q$Revision: 1.20 $, 10; use Config; use Cwd 'cwd'; @@ -135,15 +135,18 @@ sub ext { # Do not add it into the list if it is already linked in # with the main perl executable. - # We have to special-case the NeXT, because all the math - # is also in libsys_s + # We have to special-case the NeXT, because math and ndbm + # are both in libsys_s unless ($in_perl || - ($^O eq 'next' && $thislib eq 'm') ){ + ($Config{'osname'} eq 'next' && + ($thislib eq 'm' || $thislib eq 'ndbm')) ){ push(@extralibs, "-l$thislib"); } # We might be able to load this archive file dynamically - if ( $Config{'dlsrc'} =~ /dl_next|dl_dld/){ + if ( ($Config{'dlsrc'} =~ /dl_next/ && $Config{'osvers'} lt '4_0') + || ($Config{'dlsrc'} =~ /dl_dld/) ) + { # We push -l$thislib instead of $fullname because # it avoids hardwiring a fixed path into the .bs file. # Mkbootstrap will automatically add dl_findfile() to