diff options
author | Guillaume Rousse <guillomovitch@mandriva.org> | 2009-09-25 20:51:45 +0000 |
---|---|---|
committer | Guillaume Rousse <guillomovitch@mandriva.org> | 2009-09-25 20:51:45 +0000 |
commit | da851c46046313ec3eca0467884e3d3deef7cb05 (patch) | |
tree | 0084a64ae23bac6bc7e5efd71378f2f740bafeb4 | |
parent | 9f3005da9e223e160f531303d0d1303d3e665fe3 (diff) | |
download | spec-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-x | strip_and_check_elf_files | 5 |
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); |