Skip to content

Commit 4161663

Browse files
committed
Merge pull request #24 from Shao-Feng/PIE
Add GCC Flag for NDK compiling
2 parents d8836e3 + 710391e commit 4161663

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android/jni/Android.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
LOCAL_PATH := $(call my-dir)
22

33
include $(CLEAR_VARS)
4-
LOCAL_CFLAGS += -fexceptions -frtti
4+
LOCAL_CFLAGS += -fexceptions -frtti -pie -fPIE
5+
LOCAL_CPPFLAGS += -pie -fPIE
6+
LOCAL_LDFLAGS += -pie -fPIE
57
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../include
68
LOCAL_LDLIBS := -llog
79
LOCAL_MODULE := testkit-stub

0 commit comments

Comments
 (0)