Compiling with last NDK + some hardening
Patch received in https://github.com/matrix-org/olm/issues/13
This commit is contained in:
parent
08e50693b7
commit
ed7649d71e
3 changed files with 6 additions and 2 deletions
|
@ -21,6 +21,9 @@ LOCAL_CFLAGS+= -DOLMLIB_VERSION_MAJOR=$(MAJOR) \
|
||||||
|
|
||||||
#LOCAL_CFLAGS+= -DNDK_DEBUG
|
#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_C_INCLUDES+= $(LOCAL_PATH)/$(SRC_ROOT_DIR)/include/ \
|
||||||
$(LOCAL_PATH)/$(SRC_ROOT_DIR)/lib
|
$(LOCAL_PATH)/$(SRC_ROOT_DIR)/lib
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
APP_PLATFORM := android-16
|
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
|
APP_STL := gnustl_static
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <string.h>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <jni.h>
|
#include <jni.h>
|
||||||
#include <android/log.h>
|
#include <android/log.h>
|
||||||
|
|
Loading…
Reference in a new issue