android: Build PIE

This commit is contained in:
Tatsuhiro Tsujikawa 2015-02-03 01:13:50 +09:00
parent 3844701085
commit f910c6f782

View file

@ -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"