diff --git a/android-config b/android-config index 0994b486..27bf0ee2 100755 --- a/android-config +++ b/android-config @@ -52,7 +52,8 @@ PATH=$TOOLCHAIN/bin:$PATH --with-libz --with-libz-prefix=$PREFIX \ CXXFLAGS="-Os -g" \ CFLAGS="-Os -g" \ - LDFLAGS="-L$PREFIX/lib" \ + CPPFLAGS="-fPIE" \ + LDFLAGS="-fPIE -pie -L$PREFIX/lib" \ PKG_CONFIG_LIBDIR="$PREFIX/lib/pkgconfig" \ ZLIB_LIBS="-lz" \ ZLIB_CFLAGS="-I$TOOLCHAIN/sysroot/usr/include"