From 5334cb5acc668a630d83b99b429931fbb3cf7b56 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 9 Apr 2015 23:34:42 +0900 Subject: [PATCH] Enable PIE in Dockerfile.android too --- Dockerfile.android | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile.android b/Dockerfile.android index 6404651d..87990f0a 100644 --- a/Dockerfile.android +++ b/Dockerfile.android @@ -101,9 +101,9 @@ RUN autoreconf -i && \ --disable-threads \ LIBSPDYLAY_CFLAGS=-I$PREFIX/usr/local/include \ LIBSPDYLAY_LIBS="-L$PREFIX/usr/local/lib -lspdylay" \ - CPPFLAGS="-I$PREFIX/include" \ + CPPFLAGS="-fPIE -I$PREFIX/include" \ CXXFLAGS="-fno-strict-aliasing" \ PKG_CONFIG_LIBDIR="$PREFIX/lib/pkgconfig" \ - LDFLAGS="-L$PREFIX/lib" && \ + LDFLAGS="-fPIE -pie -L$PREFIX/lib" && \ make && \ arm-linux-androideabi-strip src/nghttpx src/nghttpd src/nghttp