diff --git a/core/definitions.mk b/core/definitions.mk index d31d9ce41..25ec262b6 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -173,7 +173,7 @@ endef define all-java-files-under $(patsubst ./%,%, \ $(shell cd $(LOCAL_PATH) ; \ - find $(1) -name "*.java" -and -not -name ".*") \ + find -L $(1) -name "*.java" -and -not -name ".*") \ ) endef @@ -195,7 +195,7 @@ endef define all-c-files-under $(patsubst ./%,%, \ $(shell cd $(LOCAL_PATH) ; \ - find $(1) -name "*.c" -and -not -name ".*") \ + find -L $(1) -name "*.c" -and -not -name ".*") \ ) endef @@ -217,7 +217,7 @@ endef define all-Iaidl-files-under $(patsubst ./%,%, \ $(shell cd $(LOCAL_PATH) ; \ - find $(1) -name "I*.aidl" -and -not -name ".*") \ + find -L $(1) -name "I*.aidl" -and -not -name ".*") \ ) endef @@ -238,7 +238,7 @@ endef define all-logtags-files-under $(patsubst ./%,%, \ $(shell cd $(LOCAL_PATH) ; \ - find $(1) -name "*.logtags" -and -not -name ".*") \ + find -L $(1) -name "*.logtags" -and -not -name ".*") \ ) endef @@ -251,7 +251,7 @@ endef define all-proto-files-under $(patsubst ./%,%, \ $(shell cd $(LOCAL_PATH) ; \ - find $(1) -name "*.proto" -and -not -name ".*") \ + find -L $(1) -name "*.proto" -and -not -name ".*") \ ) endef @@ -264,7 +264,7 @@ endef define all-renderscript-files-under $(patsubst ./%,%, \ $(shell cd $(LOCAL_PATH) ; \ - find $(1) -name "*.rs" -and -not -name ".*") \ + find -L $(1) -name "*.rs" -and -not -name ".*") \ ) endef @@ -277,7 +277,7 @@ endef define all-html-files-under $(patsubst ./%,%, \ $(shell cd $(LOCAL_PATH) ; \ - find $(1) -name "*.html" -and -not -name ".*") \ + find -L $(1) -name "*.html" -and -not -name ".*") \ ) endef @@ -296,7 +296,7 @@ endef ########################################################### define find-subdir-files -$(patsubst ./%,%,$(shell cd $(LOCAL_PATH) ; find $(1))) +$(patsubst ./%,%,$(shell cd $(LOCAL_PATH) ; find -L $(1))) endef ########################################################### @@ -309,7 +309,7 @@ endef define find-subdir-subdir-files $(filter-out $(patsubst %,$(1)/%,$(3)),$(patsubst ./%,%,$(shell cd \ - $(LOCAL_PATH) ; find $(1) -maxdepth 1 -name $(2)))) + $(LOCAL_PATH) ; find -L $(1) -maxdepth 1 -name $(2)))) endef ###########################################################