From 36696ece82d8944326abc5e5949be301ae360ef3 Mon Sep 17 00:00:00 2001 From: mittorn Date: Sun, 24 May 2015 23:28:46 +0700 Subject: [PATCH] Add CFLAGS_OPT check --- Android.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Android.mk b/Android.mk index 7be1dc2..e7654fc 100644 --- a/Android.mk +++ b/Android.mk @@ -18,7 +18,15 @@ include $(CLEAR_VARS) LOCAL_MODULE := NanoGL -LOCAL_CFLAGS := -O2 +LOCAL_CFLAGS += $(CFLAGS_OPT) +ifeq ($(TARGET_ARCH),arm) +LOCAL_CFLAGS += $(CFLAGS_OPT_ARM) +endif +ifeq ($(TARGET_ARCH),x86) +LOCAL_CFLAGS += $(CFLAGS_OPT_X86) +endif + +LOCAL_CFLAGS += LOCAL_C_INCLUDES := $(LOCAL_PATH)/GL -- 2.29.2