diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-02-03 01:13:50 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-02-03 01:13:50 +0900 |
| commit | f910c6f782fe276a742a8b07b8c90d0c3ed31123 (patch) | |
| tree | 7a4334d0fa8845d7f47d176a4d414a01b858e408 /android-config | |
| parent | 38447010853a77863631dd2f44245fc9257cce57 (diff) | |
android: Build PIE
Diffstat (limited to 'android-config')
| -rwxr-xr-x | android-config | 3 |
1 files changed, 2 insertions, 1 deletions
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" |
