aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2018-06-03 16:13:40 -0700
committerDan Willemsen <dwillemsen@google.com>2018-06-03 16:19:56 -0700
commitfdb20d05bc27d5deb792f7dd3162e5e423d0fa8a (patch)
tree6f2681d7b25f2f98c7cedfd27d55c75499ce1e9a /scripts
parent1d2318d6cd9b7f64178afb4e3a8ce481dd603bbf (diff)
downloadbuild_soong-fdb20d05bc27d5deb792f7dd3162e5e423d0fa8a.tar.gz
build_soong-fdb20d05bc27d5deb792f7dd3162e5e423d0fa8a.tar.bz2
build_soong-fdb20d05bc27d5deb792f7dd3162e5e423d0fa8a.zip
Fix mac sdk build
Use the host platform "strip", and also expose "nm" and "otool" used for toc. Test: `m PRODUCT-sdk-sdk` on Mac Change-Id: I7a6d127f479d3e563385ead46bc3a4b49b99776b
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/toc.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/toc.sh b/scripts/toc.sh
index 7b2224c0..bd6425be 100755
--- a/scripts/toc.sh
+++ b/scripts/toc.sh
@@ -39,8 +39,8 @@ do_elf() {
}
do_macho() {
- otool -l "${infile}" | grep LC_ID_DYLIB -A 5 > "${outfile}.tmp"
- nm -gP "${infile}" | cut -f1-2 -d" " | grep -v 'U$' >> "${outfile}.tmp"
+ "${CROSS_COMPILE}/otool" -l "${infile}" | grep LC_ID_DYLIB -A 5 > "${outfile}.tmp"
+ "${CROSS_COMPILE}/nm" -gP "${infile}" | cut -f1-2 -d" " | grep -v 'U$' >> "${outfile}.tmp"
}