Compiling with last NDK + some hardening

Patch received in https://github.com/matrix-org/olm/issues/13
This commit is contained in:
Benoit Marty 2018-06-26 10:37:07 +02:00 committed by Hubert Chathi
parent 08e50693b7
commit ed7649d71e
3 changed files with 6 additions and 2 deletions

View file

@ -21,6 +21,9 @@ LOCAL_CFLAGS+= -DOLMLIB_VERSION_MAJOR=$(MAJOR) \
#LOCAL_CFLAGS+= -DNDK_DEBUG
LOCAL_CFLAGS+=-fstack-protector-all -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Wall
LOCAL_LDFLAGS=-z relro -z now
LOCAL_C_INCLUDES+= $(LOCAL_PATH)/$(SRC_ROOT_DIR)/include/ \
$(LOCAL_PATH)/$(SRC_ROOT_DIR)/lib

View file

@ -1,3 +1,3 @@
APP_PLATFORM := android-16
APP_ABI := arm64-v8a armeabi-v7a armeabi x86_64 x86
APP_ABI := arm64-v8a armeabi-v7a x86_64 x86
APP_STL := gnustl_static

View file

@ -21,6 +21,7 @@
#include <cstdlib>
#include <cstdio>
#include <string>
#include <string.h>
#include <sstream>
#include <jni.h>
#include <android/log.h>