From ce48f6e8e193e69fdfd0b278ec366677873329c1 Mon Sep 17 00:00:00 2001 From: freesource Date: Sat, 15 Dec 2001 09:31:44 +0000 Subject: [PATCH] The ldd test was only checking for busybox .. now it checks for everything, when ldd produces only STDERR then it isn't the libc6 ldd, ofcourse, this should be tested on other alternative libs. --- BootRoot/Yard.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BootRoot/Yard.pm b/BootRoot/Yard.pm index 4f163eb..aac638f 100644 --- a/BootRoot/Yard.pm +++ b/BootRoot/Yard.pm @@ -661,9 +661,11 @@ sub library_dependencies { ## uClibc uses a different ldd --freesource ## Determine which ldd to use + ## If it just returns STDERR then it is a different type + ## of ldd. my $ldd; my $determine_ldd = `ldd $file 2>&1 1>/dev/null`; - if ( $determine_ldd =~ /BusyBox/ ) { + if ( $determine_ldd ) { $ldd = "/usr/i386-linux-uclibc/bin/ldd"; } else {