Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | From a033c9ece12b6eead48eed63f106ccdec6159b0c Mon Sep 17 00:00:00 2001 |
| 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
| 3 | Date: Fri, 20 Dec 2019 16:26:55 +0100 |
| 4 | Subject: [PATCH] CheckLib.pm: do not attempt to run a cross executable |
| 5 | |
| 6 | Upstream-Status: Inappropriate [oe-core specific] |
| 7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
| 8 | --- |
| 9 | inc/Devel/CheckLib.pm | 2 +- |
| 10 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 11 | |
| 12 | diff --git a/inc/Devel/CheckLib.pm b/inc/Devel/CheckLib.pm |
| 13 | index 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 | } |