android: Build PIE

pull/336/head
Tatsuhiro Tsujikawa 2015-02-03 01:13:50 +09:00
parent 3844701085
commit f910c6f782
1 changed files with 2 additions and 1 deletions

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"