From: Rafael Garcia-Suarez Date: Thu, 1 Nov 2001 22:35:50 +0000 (+0100) Subject: Re: Extra MakeMaker noise in lib/ExtUtils/Embed.t @12791 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fee3faeaf0fd7f75acc0a8658e8dffa83c1aba1e;p=p5sagit%2Fp5-mst-13.2.git Re: Extra MakeMaker noise in lib/ExtUtils/Embed.t @12791 Message-ID: <20011101223550.A10849@rafael> p4raw-id: //depot/perl@12810 --- diff --git a/lib/ExtUtils/Embed.t b/lib/ExtUtils/Embed.t index 0cfc737..8af06dc 100644 --- a/lib/ExtUtils/Embed.t +++ b/lib/ExtUtils/Embed.t @@ -42,7 +42,12 @@ if ($^O eq 'MSWin32') { else { push(@cmd,"-L$lib",'-lperl'); } -push(@cmd,ldopts()); +{ + local $SIG{__WARN__} = sub { + warn $_[0] unless $_[0] =~ /No library found for -lperl/ + }; + push(@cmd,ldopts()); +} if ($^O eq 'aix') { # AIX needs an explicit symbol export list. my ($perl_exp) = grep { -f } qw(perl.exp ../perl.exp);