解决error: only position independent executables (PIE) are supported

在Android.mk文件中添加以下内容

LOCAL_CFLAGS += -pie -fPIE
LOCAL_LDFLAGS += -pie -fPIE

原帖地址:http://blog.csdn.net/hxdanya/article/details/39371759
原文地址:https://www.cnblogs.com/bloodofhero/p/4402510.html