Android.mk: avoid gcc-specific flags with clang

Change-Id: Idb1ed2bb1dd5d9f65ca07185ef9838e587dc4e64
This commit is contained in:
James Zern 2014-02-07 20:31:44 -08:00
parent 32aeaf115a
commit 393f89b763

View File

@ -3,8 +3,11 @@ LOCAL_PATH := $(call my-dir)
WEBP_CFLAGS := -Wall -DANDROID -DHAVE_MALLOC_H -DHAVE_PTHREAD -DWEBP_USE_THREAD
ifeq ($(APP_OPTIM),release)
WEBP_CFLAGS += -finline-functions -frename-registers -ffast-math -s \
WEBP_CFLAGS += -finline-functions -ffast-math \
-ffunction-sections -fdata-sections
ifeq ($(findstring clang,$(NDK_TOOLCHAIN_VERSION)),)
WEBP_CFLAGS += -frename-registers -s
endif
endif
include $(CLEAR_VARS)