forked from organicmaps/organicmaps
[ANDROID] unused functions elimination by linker.
This commit is contained in:
parent
c08d41d8a9
commit
c44e2533b0
2 changed files with 11 additions and 0 deletions
|
@ -7,6 +7,9 @@ LOCAL_MODULE := mapswithme
|
|||
#LOCAL_CFLAGS := -DANDROID_NDK \
|
||||
# -DDISABLE_IMPORTGL
|
||||
|
||||
LOCAL_CFLAGS := -ffunction-sections -fdata-sections
|
||||
|
||||
|
||||
LOCAL_HEADER_FILES := \
|
||||
jni_helper.h \
|
||||
jni_string.h \
|
||||
|
@ -33,4 +36,6 @@ LOCAL_LDLIBS := -llog -lGLESv1_CM \
|
|||
LOCAL_LDLIBS += -L../../omim-android-debug/out/debug
|
||||
#LOCAL_LDLIBS += -L../../omim-android-release/out/release
|
||||
|
||||
LOCAL_LDLIBS += -Wl,--gc-sections
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
|
|
@ -126,6 +126,12 @@ linux-g++* {
|
|||
QMAKE_LFLAGS *= -Wl,--gc-sections
|
||||
}
|
||||
|
||||
android-g++ {
|
||||
QMAKE_CFLAGS *= -fdata-sections -ffunction-sections
|
||||
QMAKE_CXXFLAGS *= -fdata-sections -ffunction-sections
|
||||
QMAKE_LFLAGS *= -Wl,--gc-sections
|
||||
}
|
||||
|
||||
win32-g++ {
|
||||
QMAKE_CFLAGS *= -Wextra
|
||||
QMAKE_CXXFLAGS *= -Wextra
|
||||
|
|
Loading…
Add table
Reference in a new issue