From 6ca24264e4139619c2a9a8407a2e082ceb14a618 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 9 Apr 2015 23:30:12 +0900 Subject: [PATCH] Enable PIE for Android build --- android-config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android-config b/android-config index 21d269d8..9828822e 100755 --- a/android-config +++ b/android-config @@ -42,6 +42,6 @@ PATH=$TOOLCHAIN/bin:$PATH --enable-werror \ CC=clang \ CXX=clang++ \ - CPPFLAGS="-I$PREFIX/include" \ + CPPFLAGS="-fPIE -I$PREFIX/include" \ PKG_CONFIG_LIBDIR="$PREFIX/lib/pkgconfig" \ - LDFLAGS="-L$PREFIX/lib" + LDFLAGS="-fPIE -pie -L$PREFIX/lib"