diff options
author | Ying Wang <wangying@google.com> | 2014-08-20 17:12:32 -0700 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2014-09-03 12:11:06 -0700 |
commit | bfb52a2ec199a75e1a0e4e92148af0a6323c9f46 (patch) | |
tree | ef39b44ce9a77e7b3845153e5242c88ebc97156d /core/definitions.mk | |
parent | df71e5b1c5cd637ac6eb5cd6df8cce1965c91593 (diff) | |
download | build-bfb52a2ec199a75e1a0e4e92148af0a6323c9f46.zip build-bfb52a2ec199a75e1a0e4e92148af0a6323c9f46.tar.gz build-bfb52a2ec199a75e1a0e4e92148af0a6323c9f46.tar.bz2 |
Strip prebuilt shared library by default.
Strip prebuilt shared library but not try adding gnu debuglink.
It would fail if you try run the adding gnu debuglink command if a
prebuilt is already stripped.
Bug: 17177288
Change-Id: If5811865715c2437e45fbd329983ef1212ef0109
Diffstat (limited to 'core/definitions.mk')
-rw-r--r-- | core/definitions.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/definitions.mk b/core/definitions.mk index 4d0db2e..cfaefc3 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -1353,7 +1353,8 @@ endif define transform-to-stripped @mkdir -p $(dir $@) @echo "target Strip: $(PRIVATE_MODULE) ($@)" -$(hide) $(PRIVATE_STRIP) --strip-all $< -o $@ $(TARGET_STRIP_EXTRA) +$(hide) $(PRIVATE_STRIP) --strip-all $< -o $@ \ + $(if $(PRIVATE_NO_DEBUGLINK),,$(TARGET_STRIP_EXTRA)) endef define transform-to-stripped-keep-symbols |