From fee3faeaf0fd7f75acc0a8658e8dffa83c1aba1e Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Thu, 1 Nov 2001 23:35:50 +0100 Subject: [PATCH] Re: Extra MakeMaker noise in lib/ExtUtils/Embed.t @12791 Message-ID: <20011101223550.A10849@rafael> p4raw-id: //depot/perl@12810 --- lib/ExtUtils/Embed.t | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); -- 2.7.4