From d7e28b196af0ca7a6283a6d5022d6834173b3bbb Mon Sep 17 00:00:00 2001 From: codewalker Date: Mon, 21 Mar 2016 18:46:50 +0900 Subject: [PATCH] Add -fPIE FLAGS. --- jni/vnc/Android.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jni/vnc/Android.mk b/jni/vnc/Android.mk index 52de28b..d7ef46a 100755 --- a/jni/vnc/Android.mk +++ b/jni/vnc/Android.mk @@ -76,4 +76,7 @@ LOCAL_STATIC_LIBRARIES := libjpeg libpng libssl_static libcrypto_static LOCAL_MODULE := androidvncserver +LOCAL_CFLAGS += -fPIE +LOCAL_LDFLAGS += -fPIE -pie + include $(BUILD_EXECUTABLE)