Skip to content

Commit

Permalink
Fix zipalign runner to use LD_LIBRARY_PATH. It sometimes can't find i…
Browse files Browse the repository at this point in the history
…ts shared libraries.

RELNOTES: None.
PiperOrigin-RevId: 428850995
  • Loading branch information
ahumesky authored and copybara-github committed Feb 15, 2022
1 parent b194653 commit d9fffba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/android/android_sdk_repository_template.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ def create_android_sdk_rules(
"if [[ ! -d $${SDK} ]] ; then",
" SDK=$$(pwd)/../%s" % name,
"fi",
"exec $${SDK}/build-tools/%s/%s $$*" % (build_tools_directory, tool),
"tool=$${SDK}/build-tools/%s/%s" % (build_tools_directory, tool),
"exec env LD_LIBRARY_PATH=$${SDK}/build-tools/%s/lib64 $$tool $$*" % build_tools_directory,
"EOF\n",
]),
)
Expand Down

0 comments on commit d9fffba

Please sign in to comment.