aboutsummaryrefslogtreecommitdiff
path: root/runtime/tools
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2015-09-16 12:01:14 +0000
committerSylvestre Ledru <sylvestre@debian.org>2015-09-16 12:01:14 +0000
commit0401c9a5409fae3b94811d6293e20446e04647db (patch)
treee7a097b869af0340a276902b3adf8433f7cd0ccb /runtime/tools
parent8aa5b7d1461247f0ab90a02c08c53fc9c9c5f702 (diff)
Force the readelf call to be in English
Summary: For example, when readelf is called on a french localization, it will find "Librairie partagées" instead of "shared library" Reviewers: AndreyChurbanov, jcownie Differential Revision: http://reviews.llvm.org/D12902 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@247787 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/tools')
-rwxr-xr-xruntime/tools/check-depends.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/tools/check-depends.pl b/runtime/tools/check-depends.pl
index b199877..02a7ddd 100755
--- a/runtime/tools/check-depends.pl
+++ b/runtime/tools/check-depends.pl
@@ -105,6 +105,11 @@ sub get_deps_readelf($) {
$tool = "readelf";
}
+ # Force the readelf call to be in English. For example, when readelf
+ # is called on a french localization, it will find "Librairie partagees"
+ # instead of shared library
+ $ENV{ LANG } = "C";
+
execute( [ $tool, "-d", $file ], -stdout => \@bulk );
debug( @bulk, "(eof)" );