forked from openkylin/platform_build
Darwin: Use nm/otool from Soong instead of PATH
Soong now exposes the proper paths to NM & OTOOL so that we don't need to assume that they're in $PATH. Test: `m PRODUCT-sdk-sdk` on Mac Change-Id: If0d963832154841d00ced7a6cfa9de5a014af084
This commit is contained in:
parent
89b40fa645
commit
0c31654ae4
|
@ -311,8 +311,8 @@ endef
|
|||
|
||||
# Commands to generate .toc file from Darwin dynamic library.
|
||||
define _gen_toc_command_for_macho
|
||||
$(hide) otool -l $(1) | grep LC_ID_DYLIB -A 5 > $(2)
|
||||
$(hide) nm -gP $(1) | cut -f1-2 -d" " | (grep -v U$$ >> $(2) || true)
|
||||
$(hide) $(HOST_OTOOL) -l $(1) | grep LC_ID_DYLIB -A 5 > $(2)
|
||||
$(hide) $(HOST_NM) -gP $(1) | cut -f1-2 -d" " | (grep -v U$$ >> $(2) || true)
|
||||
endef
|
||||
|
||||
combo_target := HOST_
|
||||
|
|
Loading…
Reference in New Issue