Skip to content

Commit

Permalink
build: Enable link time optimization for non-windows OS.
Browse files Browse the repository at this point in the history
  • Loading branch information
fzurita committed Dec 26, 2017
1 parent 9428607 commit 6004a46
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app/src/main/jni/Android.mk
Expand Up @@ -18,10 +18,19 @@ COMMON_CFLAGS := \
-fvisibility=hidden

COMMON_CPPFLAGS := \
-fvisibility-inlines-hidden
-fvisibility-inlines-hidden \
-O3 \
-ffast-math \

COMMON_LDFLAGS :=

ifneq ($(HOST_OS),windows)
COMMON_CFLAGS += -flto
COMMON_LDFLAGS += \
$(COMMON_CFLAGS) \
$(COMMON_CPPFLAGS)
endif

include $(JNI_LOCAL_PATH)/GL/GL/Android.mk
include $(JNI_LOCAL_PATH)/SDL2/Android.mk
include $(JNI_LOCAL_PATH)/soundtouch/source/Android-lib/jni/Android.mk
Expand Down

0 comments on commit 6004a46

Please sign in to comment.