diff options
| author | Chaoren Lin <chaorenl@google.com> | 2015-06-02 16:43:19 +0000 |
|---|---|---|
| committer | Chaoren Lin <chaorenl@google.com> | 2015-06-02 16:43:19 +0000 |
| commit | 7d76a13bf3e8da7887fb1a6e5fcc7eaf4e2af957 (patch) | |
| tree | 992d324925d5244cfe2745c44e2a4e4bd9351eba | |
| parent | 31a473137096b979e5cd297848d46ce72bd924be (diff) | |
| download | bcm5719-llvm-7d76a13bf3e8da7887fb1a6e5fcc7eaf4e2af957.tar.gz bcm5719-llvm-7d76a13bf3e8da7887fb1a6e5fcc7eaf4e2af957.zip | |
Fix OBJCOPY and AR for Android.
Summary:
Previously, OBJCOPY was empty because of the missing comma,
and ar was just `ar`.
Reviewers: ovyalov, tberghammer
Subscribers: tberghammer, lldb-commits
Differential Revision: http://reviews.llvm.org/D10175
llvm-svn: 238849
| -rw-r--r-- | lldb/test/make/Makefile.rules | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/lldb/test/make/Makefile.rules b/lldb/test/make/Makefile.rules index 984adcd479e..fcb67adffea 100644 --- a/lldb/test/make/Makefile.rules +++ b/lldb/test/make/Makefile.rules @@ -216,15 +216,19 @@ endif # Android specific options #---------------------------------------------------------------------- ifeq "$(OS)" "Android" - objcopy_notdir = $(if $(findstring clang,$(1)), \ - $(subst clang,objcopy,$(1)), \ - $(if $(findstring gcc,$(1)), \ - $(subst gcc,objcopy,$(1)), \ - $(subst cc,objcopy,$(1)))))) - objcopy = $(if $(findstring /,$(1)),$(join $(dir $(1)), $(call objcopy_notdir,$(notdir $(1)))),$(call objcopy_notdir,$(1))) - LDFLAGS += -pie - OBJCOPY = $(call objcopy $(CC)) + replace_with = $(if $(findstring clang,$(1)), \ + $(subst clang,$(2),$(1)), \ + $(if $(findstring gcc,$(1)), \ + $(subst gcc,$(2),$(1)), \ + $(subst cc,$(2),$(1)))) + ifeq "$(notdir $(CC))" "$(CC)" + replace_cc_with = $(call replace_with,$(CC),$(1)) + else + replace_cc_with = $(join $(dir $(CC)),$(call replace_with,$(notdir $(CC)),$(1))) + endif + OBJCOPY = $(call replace_cc_with,objcopy) + AR = $(call replace_cc_with,ar) endif #---------------------------------------------------------------------- |

