aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xstrip_and_check_elf_files5
1 files changed, 5 insertions, 0 deletions
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);