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)