From 91b403cef62a5f1c727c3ed7395ea83852c4a2ab Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Fri, 6 Feb 2015 14:16:17 -0800 Subject: [PATCH] Use LOCAL_C_INCLUDES instead of LOCAL_CFLAGS for include dirs Change-Id: If61d6faae5d91c3bbe198e733e5922cd877ba353 --- libc/Android.mk | 45 +++++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/libc/Android.mk b/libc/Android.mk index 0fca92dee..dd4d4cf70 100644 --- a/libc/Android.mk +++ b/libc/Android.mk @@ -691,15 +691,16 @@ LOCAL_CFLAGS += \ -DINET6 \ -fvisibility=hidden \ -Wno-unused-parameter \ - -I$(LOCAL_PATH)/dns/include \ - -I$(LOCAL_PATH)/private \ - -I$(LOCAL_PATH)/upstream-netbsd/lib/libc/include \ - -I$(LOCAL_PATH)/upstream-netbsd/android/include \ -include netbsd-compat.h \ LOCAL_CONLYFLAGS := $(libc_common_conlyflags) LOCAL_CPPFLAGS := $(libc_common_cppflags) -LOCAL_C_INCLUDES := $(libc_common_c_includes) +LOCAL_C_INCLUDES := $(libc_common_c_includes) \ + $(LOCAL_PATH)/dns/include \ + $(LOCAL_PATH)/private \ + $(LOCAL_PATH)/upstream-netbsd/lib/libc/include \ + $(LOCAL_PATH)/upstream-netbsd/android/include \ + LOCAL_MODULE := libc_dns LOCAL_CLANG := $(use_clang) LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) @@ -725,13 +726,14 @@ LOCAL_SRC_FILES := $(libc_upstream_freebsd_src_files) LOCAL_CFLAGS := \ $(libc_common_cflags) \ -Wno-sign-compare -Wno-uninitialized \ - -I$(LOCAL_PATH)/upstream-freebsd/android/include \ - -I$(LOCAL_PATH)/upstream-freebsd/lib/libc/include \ -include freebsd-compat.h \ LOCAL_CONLYFLAGS := $(libc_common_conlyflags) LOCAL_CPPFLAGS := $(libc_common_cppflags) -LOCAL_C_INCLUDES := $(libc_common_c_includes) +LOCAL_C_INCLUDES := $(libc_common_c_includes) \ + $(LOCAL_PATH)/upstream-freebsd/android/include \ + $(LOCAL_PATH)/upstream-freebsd/lib/libc/include \ + LOCAL_MODULE := libc_freebsd LOCAL_CLANG := $(use_clang) LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) @@ -759,13 +761,14 @@ LOCAL_CFLAGS := \ $(libc_common_cflags) \ -Wno-sign-compare -Wno-uninitialized \ -DPOSIX_MISTAKE \ - -I$(LOCAL_PATH)/upstream-netbsd/android/include \ - -I$(LOCAL_PATH)/upstream-netbsd/lib/libc/include \ -include netbsd-compat.h \ LOCAL_CONLYFLAGS := $(libc_common_conlyflags) LOCAL_CPPFLAGS := $(libc_common_cppflags) -LOCAL_C_INCLUDES := $(libc_common_c_includes) +LOCAL_C_INCLUDES := $(libc_common_c_includes) \ + $(LOCAL_PATH)/upstream-netbsd/android/include \ + $(LOCAL_PATH)/upstream-netbsd/lib/libc/include \ + LOCAL_MODULE := libc_netbsd LOCAL_CLANG := $(use_clang) LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) @@ -801,15 +804,16 @@ LOCAL_CFLAGS := \ -Wno-sign-compare \ -Wno-uninitialized \ -Wno-unused-parameter \ - -I$(LOCAL_PATH)/private \ - -I$(LOCAL_PATH)/upstream-openbsd/android/include \ - -I$(LOCAL_PATH)/upstream-openbsd/lib/libc/include \ - -I$(LOCAL_PATH)/upstream-openbsd/lib/libc/gdtoa/ \ -include openbsd-compat.h \ LOCAL_CONLYFLAGS := $(libc_common_conlyflags) LOCAL_CPPFLAGS := $(libc_common_cppflags) -LOCAL_C_INCLUDES := $(libc_common_c_includes) +LOCAL_C_INCLUDES := $(libc_common_c_includes) \ + $(LOCAL_PATH)/private \ + $(LOCAL_PATH)/upstream-openbsd/android/include \ + $(LOCAL_PATH)/upstream-openbsd/lib/libc/include \ + $(LOCAL_PATH)/upstream-openbsd/lib/libc/gdtoa/ \ + LOCAL_MODULE := libc_openbsd LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) LOCAL_CXX_STL := none @@ -844,14 +848,15 @@ LOCAL_CFLAGS := \ $(libc_common_cflags) \ -Wno-sign-compare -Wno-uninitialized \ -fvisibility=hidden \ - -I$(LOCAL_PATH)/private \ - -I$(LOCAL_PATH)/upstream-openbsd/android/include \ - -I$(LOCAL_PATH)/upstream-openbsd/lib/libc/include \ -include openbsd-compat.h \ LOCAL_CONLYFLAGS := $(libc_common_conlyflags) LOCAL_CPPFLAGS := $(libc_common_cppflags) -LOCAL_C_INCLUDES := $(libc_common_c_includes) +LOCAL_C_INCLUDES := $(libc_common_c_includes) \ + $(LOCAL_PATH)/private \ + $(LOCAL_PATH)/upstream-openbsd/android/include \ + $(LOCAL_PATH)/upstream-openbsd/lib/libc/include \ + LOCAL_MODULE := libc_gdtoa LOCAL_ADDITIONAL_DEPENDENCIES := $(libc_common_additional_dependencies) LOCAL_CXX_STL := none