diff options
Diffstat (limited to 'tools/mkspecs/android-g++/qmake.conf')
-rw-r--r-- | tools/mkspecs/android-g++/qmake.conf | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/mkspecs/android-g++/qmake.conf b/tools/mkspecs/android-g++/qmake.conf index 80a599665d..0021cfad93 100644 --- a/tools/mkspecs/android-g++/qmake.conf +++ b/tools/mkspecs/android-g++/qmake.conf @@ -52,7 +52,8 @@ QMAKE_CC = $$NDK_TOOLCHAIN_PATH/bin/$$ANDROID_CC_PREFIX-gcc QMAKE_CFLAGS += --sysroot=$$ANDROID_PLATFORM_ROOT_PATH -ffunction-sections -fdata-sections -fomit-frame-pointer -DANDROID -Wno-psabi #QMAKE_CFLAGS += -funwind-tables QMAKE_CFLAGS_DEBUG += -fstack-protector -O0 -g -QMAKE_CFLAGS_RELEASE += -O3 +# We have -g in release/production because android strips symbols automatically and leaves unstripped libs too to decode crash logs with ndk-stack +QMAKE_CFLAGS_RELEASE *= -O3 -g contains(ANDROID_TARGET_ARCH, arm) { QMAKE_CFLAGS += -fpic -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -Wno-psabi -mthumb -fno-strict-aliasing -finline-limit=64 -Wa,--noexecstack contains(ANDROID_TARGET_ABI, armeabi-v7a): QMAKE_CFLAGS += -march=armv7-a -mfloat-abi=softfp -mfpu=vfp |