Skip to content

Commit

Permalink
Use flags for smaller binary
Browse files Browse the repository at this point in the history
  • Loading branch information
topjohnwu committed Dec 4, 2018
1 parent 553db91 commit 68b07c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion native/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
APP_ABI := armeabi-v7a x86
APP_CFLAGS := -std=gnu11 -DMAGISK_VERSION="${MAGISK_VERSION}" -DMAGISK_VER_CODE=${MAGISK_VER_CODE}
APP_CFLAGS := -Oz -std=gnu11 \
-DMAGISK_VERSION="${MAGISK_VERSION}" -DMAGISK_VER_CODE=${MAGISK_VER_CODE}
APP_CPPFLAGS := -std=c++14
APP_STL := system
APP_PLATFORM := android-16
Expand All @@ -10,6 +11,7 @@ endif

# Busybox require some additional settings
ifdef B_BB
APP_CFLAGS := -Os
APP_SHORT_COMMANDS := true
NDK_TOOLCHAIN_VERSION := 4.9
APP_PLATFORM := android-21
Expand Down

0 comments on commit 68b07c5

Please sign in to comment.