forked from organicmaps/organicmaps
[android] Switched toolchain to gcc 4.6 to avoid crashes on armeabi 2.1 and 2.2
This commit is contained in:
parent
c8b29bb6fb
commit
8281854296
6 changed files with 10 additions and 11 deletions
|
@ -199,7 +199,7 @@ LOCAL_SRC_FILES := \
|
|||
nv_event/nv_event.cpp \
|
||||
nv_time/nv_time.cpp
|
||||
|
||||
LOCAL_LDLIBS := -llog -lGLESv2 -latomic
|
||||
LOCAL_LDLIBS := -llog -lGLESv2
|
||||
|
||||
LOCAL_LDLIBS += -Wl,--gc-sections
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
NDK_TOOLCHAIN_VERSION := clang
|
||||
NDK_TOOLCHAIN_VERSION := 4.6
|
||||
APP_PLATFORM := android-5
|
||||
APP_STL := gnustl_static
|
||||
APP_CPPFLAGS += -std=c++11
|
||||
# for gcc 4.8+
|
||||
#APP_CPPFLAGS += -Wno-deprecated-register
|
||||
|
||||
ifeq (x$(NDK_ABI_TO_BUILD), x)
|
||||
APP_ABI := armeabi armeabi-v7a-hard x86
|
||||
|
|
|
@ -17,11 +17,6 @@ CONFIG -= depend_includepath
|
|||
|
||||
CONFIG *= c++11
|
||||
|
||||
CONFIG(c++11) {
|
||||
QMAKE_CFLAGS *= -Wno-deprecated-register
|
||||
QMAKE_CXXFLAGS *= -Wno-deprecated-register
|
||||
}
|
||||
|
||||
# Automatically enable release config for production
|
||||
CONFIG(production) {
|
||||
CONFIG *= release
|
||||
|
|
|
@ -14,7 +14,7 @@ CONFIGURATION="$1"
|
|||
source "$MY_PATH/build.sh"
|
||||
source "$MY_PATH/ndk_helper.sh"
|
||||
|
||||
MKSPEC="$MY_PATH/../mkspecs/android-clang"
|
||||
MKSPEC="$MY_PATH/../mkspecs/android-g++"
|
||||
QMAKE_PARAMS="CONFIG+=${CONFIGURATION}"
|
||||
SHADOW_DIR_BASE="$MY_PATH/../../../omim-android"
|
||||
|
||||
|
|
|
@ -97,10 +97,12 @@ QMAKE_CFLAGS *= -DANDROID -gcc-toolchain $$GCC_TOOLCHAIN -target $$GCC_TARGET
|
|||
QMAKE_CFLAGS *= -Wa,--noexecstack -Wformat -Werror=format-security
|
||||
# to avoid warning: empty struct has size 0 in C, size 1 in C++ in struct lconv {};
|
||||
# in android-ndk/platforms/android-5/arch-arm/usr/include/locale.h
|
||||
QMAKE_CFLAGS *= -Wno-extern-c-compat
|
||||
QMAKE_CFLAGS *= -Wno-extern-c-compat -Wno-deprecated-register
|
||||
|
||||
|
||||
QMAKE_CXXFLAGS *= $$QMAKE_CFLAGS -std=c++11 -fexceptions -frtti
|
||||
|
||||
|
||||
CONFIG *= $$ANDROID_PLATFORM hide_symbols warn_on dwarf2
|
||||
|
||||
QMAKE_CFLAGS_WARN_ON = -Wall -W
|
||||
|
@ -140,4 +142,4 @@ QMAKE_PREFIX_SHLIB = lib
|
|||
QMAKE_PREFIX_STATICLIB = lib
|
||||
QMAKE_EXTENSION_STATICLIB = a
|
||||
|
||||
load(qt_config)
|
||||
load(qt_config)
|
||||
|
|
|
@ -88,7 +88,7 @@ QMAKE_CFLAGS_HIDESYMS = -fvisibility=hidden
|
|||
|
||||
QMAKE_CXX = $$NDK_TOOLCHAIN_PATH/bin/$$ANDROID_CC_PREFIX-g++
|
||||
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
|
||||
QMAKE_CXXFLAGS += -frtti -fexceptions
|
||||
QMAKE_CXXFLAGS += -frtti -fexceptions -std=c++11
|
||||
QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON
|
||||
QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF
|
||||
QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CFLAGS_RELEASE
|
||||
|
|
Loading…
Add table
Reference in a new issue