Use $(TARGET_CC) instead of $(CC). Correctly name and set LOCAL_CFLAGS.
Reviewed-by: Chad Versace <chad@chad-versace.us>
MESA_DRI_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/dri
MESA_DRI_MODULE_UNSTRIPPED_PATH := $(TARGET_OUT_SHARED_LIBRARIES_UNSTRIPPED)/dri
+MESA_DRI_CFLAGS := \
+ -DFEATURE_GL=1 \
+ -DFEATURE_ES1=1 \
+ -DFEATURE_ES2=1
+
MESA_DRI_C_INCLUDES := \
$(addprefix $(MESA_TOP)/, $(mesa_dri_common_INCLUDES)) \
$(DRM_TOP) \
# Overriding LOCAL_CC below is an ugly workaround. We cannot place -std=c99
# in LOCAL_C_FLAGS because Android appends LOCAL_C_FLAGS to LOCAL_CPP_FLAGS.
-LOCAL_CC := $(CC) -std=c99
+LOCAL_CC := $(TARGET_CC) -std=c99
-LOCAL_C_FLAGS := \
- $(MESA_DRI_C_FLAGS) \
- -DI965
+LOCAL_CFLAGS := \
+ $(MESA_DRI_CFLAGS)
LOCAL_C_INCLUDES := \
$(i965_INCLUDES) \