blob: c5bbe7888edb8c0994ab15ba45e48b77e543238a [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001From a033c9ece12b6eead48eed63f106ccdec6159b0c Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Fri, 20 Dec 2019 16:26:55 +0100
4Subject: [PATCH] CheckLib.pm: do not attempt to run a cross executable
5
6Upstream-Status: Inappropriate [oe-core specific]
7Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
8---
9 inc/Devel/CheckLib.pm | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/inc/Devel/CheckLib.pm b/inc/Devel/CheckLib.pm
13index 36a451a..b04acc1 100644
14--- a/inc/Devel/CheckLib.pm
15+++ b/inc/Devel/CheckLib.pm
16@@ -330,7 +330,7 @@ sub assert_lib {
17 push @missing, $lib if $rv != 0 || !-x $exefile;
18 my $absexefile = File::Spec->rel2abs($exefile);
19 $absexefile = '"' . $absexefile . '"' if $absexefile =~ m/\s/;
20- push @wrongresult, $lib if $rv == 0 && -x $exefile && system($absexefile) != 0;
21+ push @wrongresult, $lib if $rv == 0 && -x $exefile && 0 != 0;
22 unlink $ofile if -e $ofile;
23 _cleanup_exe($exefile);
24 }