aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2009-09-25 20:51:45 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2009-09-25 20:51:45 +0000
commitda851c46046313ec3eca0467884e3d3deef7cb05 (patch)
tree0084a64ae23bac6bc7e5efd71378f2f740bafeb4
parent9f3005da9e223e160f531303d0d1303d3e665fe3 (diff)
downloadspec-helper-da851c46046313ec3eca0467884e3d3deef7cb05.tar
spec-helper-da851c46046313ec3eca0467884e3d3deef7cb05.tar.gz
spec-helper-da851c46046313ec3eca0467884e3d3deef7cb05.tar.bz2
spec-helper-da851c46046313ec3eca0467884e3d3deef7cb05.tar.xz
spec-helper-da851c46046313ec3eca0467884e3d3deef7cb05.zip
set LD_LIBRARY_PATH to build root before calling ldd (#41522)
-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);