From 7f98a7cc3783914ac87ffc7a0a6547aba633015e Mon Sep 17 00:00:00 2001 From: mittorn Date: Wed, 12 Aug 2015 23:13:31 +0700 Subject: [PATCH] Update Android.mk --- Android.mk | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Android.mk b/Android.mk index e7654fc..11fc7cd 100644 --- a/Android.mk +++ b/Android.mk @@ -19,10 +19,16 @@ include $(CLEAR_VARS) LOCAL_MODULE := NanoGL LOCAL_CFLAGS += $(CFLAGS_OPT) -ifeq ($(TARGET_ARCH),arm) -LOCAL_CFLAGS += $(CFLAGS_OPT_ARM) +ifeq ($(TARGET_ARCH_ABI),armeabi-v7a-hard) +LOCAL_CFLAGS += $(CFLAGS_OPT_ARM) -mfloat-abi=hard -mhard-float -DLOAD_HARDFP -DSOFTFP_LINK endif -ifeq ($(TARGET_ARCH),x86) +ifeq ($(TARGET_ARCH_ABI),armeabi-v7a) +LOCAL_CFLAGS += $(CFLAGS_OPT_ARM) -mfloat-abi=softfp +endif +ifeq ($(TARGET_ARCH_ABI),armeabi) +LOCAL_CFLAGS += $(CFLAGS_OPT_ARMv5) +endif +ifeq ($(TARGET_ARCH_ABI),x86) LOCAL_CFLAGS += $(CFLAGS_OPT_X86) endif -- 2.29.2