summaryrefslogtreecommitdiff
path: root/main/jni
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2014-06-04 17:17:02 +0200
committerArne Schwabe <arne@rfc2549.org>2014-06-04 17:17:02 +0200
commit614b8790e5fc0bb3864eb2e3dd8c15016333d016 (patch)
tree53cfe70577ddc69cd92f5b816281d2a76bced1ce /main/jni
parentca7fe0a3dcdcec7d0cfa77bcff26409e84a9fa9a (diff)
Implement PIE on JELLY BEAN
Diffstat (limited to 'main/jni')
-rw-r--r--main/jni/Android.mk13
1 files changed, 12 insertions, 1 deletions
diff --git a/main/jni/Android.mk b/main/jni/Android.mk
index 3152d7e9..33d0bc76 100644
--- a/main/jni/Android.mk
+++ b/main/jni/Android.mk
@@ -57,6 +57,17 @@ include $(CLEAR_VARS)
LOCAL_LDLIBS := -lz -lc
LOCAL_SHARED_LIBRARIES := libssl libcrypto openvpn
LOCAL_SRC_FILES:= minivpn.c dummy.cpp
-LOCAL_MODULE = minivpn
+LOCAL_MODULE = nopievpn
+include $(BUILD_EXECUTABLE)
+
+
+include $(CLEAR_VARS)
+LOCAL_LDLIBS := -lz -lc
+LOCAL_CFLAGS= -fPIE -pie
+LOCAL_CFLAGS = -fPIE
+LOCAL_LDFLAGS = -fPIE -pie
+LOCAL_SHARED_LIBRARIES := libssl libcrypto openvpn
+LOCAL_SRC_FILES:= minivpn.c dummy.cpp
+LOCAL_MODULE = pievpn
include $(BUILD_EXECUTABLE)