SDL: fixed optimization flags for debug builds, I can finally run ndk-gdb because I've got a new phone yay

This commit is contained in:
Sergii Pylypenko
2018-12-05 20:15:36 +02:00
parent bf0eb74ea8
commit eec2e53f0f
5 changed files with 20 additions and 5 deletions

View File

@@ -3,7 +3,10 @@ APP_PROJECT_PATH := $(call my-dir)/..
include jni/Settings.mk
APP_STL := c++_static
APP_CFLAGS := -Oz -DNDEBUG -g # -Oz works best with clang
APP_CFLAGS := -g
ifneq ($(NDK_DEBUG),1)
APP_CFLAGS += -Oz -DNDEBUG # -Oz works best with clang
endif
APP_PIE := true # This feature makes executables incompatible to Android API 15 or lower, but executables without PIE will not run on Android 5.0 and newer
SDL_EXCLUDE_LIBGCC := -Wl,--exclude-libs,libgcc.a
SDL_EXCLUDE_LIBUNWIND := -Wl,--exclude-libs,libunwind.a