From da851c46046313ec3eca0467884e3d3deef7cb05 Mon Sep 17 00:00:00 2001 From: Guillaume Rousse Date: Fri, 25 Sep 2009 20:51:45 +0000 Subject: set LD_LIBRARY_PATH to build root before calling ldd (#41522) --- strip_and_check_elf_files | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/strip_and_check_elf_files b/strip_and_check_elf_files index c3c5301..18a571f 100755 --- a/strip_and_check_elf_files +++ b/strip_and_check_elf_files @@ -12,6 +12,11 @@ die "Invalid build root" unless -d $buildroot; # normalize build root $buildroot =~ s|/$||; +# set LIBRARY_PATH to check libraries in build root +my $lib = `rpm --eval %_lib`; +chomp $lib; +$ENV{LD_LIBRARY_PATH}="$buildroot/$lib:$buildroot/usr/$lib"; + my (@shared_libs, @executables, @static_libs); find(\&keep_wanted, $buildroot); -- cgit v1.2.1