From a6a9ab07ed7bdd60d8183894738cd5d06518d5f3 Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Wed, 30 Mar 2016 18:34:43 -0700 Subject: [PATCH] Replace $(shell) in recipe with subshell. Bug: 27925180 Change-Id: I4a735755e4f818f6ce608c87ad111b9dd205ef41 --- core/definitions.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/definitions.mk b/core/definitions.mk index ce71f453a0..94ceb76d1c 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -1152,7 +1152,7 @@ define transform-cpp-to-o @mkdir -p $(dir $@) $(hide) $(RELATIVE_PWD) $(PRIVATE_CXX) \ $(addprefix -I , $(PRIVATE_C_INCLUDES)) \ - $(shell cat $(PRIVATE_IMPORT_INCLUDES)) \ + $$(cat $(PRIVATE_IMPORT_INCLUDES)) \ $(addprefix -isystem ,\ $(if $(PRIVATE_NO_DEFAULT_COMPILER_FLAGS),, \ $(filter-out $(PRIVATE_C_INCLUDES), \ @@ -1184,7 +1184,7 @@ define transform-c-or-s-to-o-no-deps @mkdir -p $(dir $@) $(hide) $(RELATIVE_PWD) $(PRIVATE_CC) \ $(addprefix -I , $(PRIVATE_C_INCLUDES)) \ - $(shell cat $(PRIVATE_IMPORT_INCLUDES)) \ + $$(cat $(PRIVATE_IMPORT_INCLUDES)) \ $(addprefix -isystem ,\ $(if $(PRIVATE_NO_DEFAULT_COMPILER_FLAGS),, \ $(filter-out $(PRIVATE_C_INCLUDES), \ @@ -1259,7 +1259,7 @@ define transform-host-cpp-to-o @mkdir -p $(dir $@) $(hide) $(RELATIVE_PWD) $(PRIVATE_CXX) \ $(addprefix -I , $(PRIVATE_C_INCLUDES)) \ - $(shell cat $(PRIVATE_IMPORT_INCLUDES)) \ + $$(cat $(PRIVATE_IMPORT_INCLUDES)) \ $(addprefix -isystem ,\ $(if $(PRIVATE_NO_DEFAULT_COMPILER_FLAGS),, \ $(filter-out $(PRIVATE_C_INCLUDES), \ @@ -1289,7 +1289,7 @@ define transform-host-c-or-s-to-o-no-deps @mkdir -p $(dir $@) $(hide) $(RELATIVE_PWD) $(PRIVATE_CC) \ $(addprefix -I , $(PRIVATE_C_INCLUDES)) \ - $(shell cat $(PRIVATE_IMPORT_INCLUDES)) \ + $$(cat $(PRIVATE_IMPORT_INCLUDES)) \ $(addprefix -isystem ,\ $(if $(PRIVATE_NO_DEFAULT_COMPILER_FLAGS),, \ $(filter-out $(PRIVATE_C_INCLUDES), \