1LOCAL_PATH := $(call my-dir) 2 3include $(CLEAR_VARS) 4LOCAL_MODULE := flto 5LOCAL_SRC_FILES := flto.c 6 7FLTO_FLAG := -flto 8ifneq ($(filter clang%,$(NDK_TOOLCHAIN_VERSION)),) 9ifeq ($(TARGET_ARCH_ABI),mips) 10# clang does LTO via gold plugin, but gold doesn't support MIPS yet 11FLTO_FLAG := 12endif 13endif 14 15LOCAL_CFLAGS += $(FLTO_FLAG) 16LOCAL_LDFLAGS += $(FLTO_FLAG) 17include $(BUILD_EXECUTABLE) 18 19