Merge pull request #1805 from nghttp2/dockerfile-android-improvements
Dockerfile android improvements
This commit is contained in:
commit
958d9ac63b
|
@ -27,7 +27,6 @@ ENV LD $TOOLCHAIN/bin/ld
|
||||||
ENV RANDLIB $TOOLCHAIN/bin/llvm-ranlib
|
ENV RANDLIB $TOOLCHAIN/bin/llvm-ranlib
|
||||||
ENV STRIP $TOOLCHAIN/bin/llvm-strip
|
ENV STRIP $TOOLCHAIN/bin/llvm-strip
|
||||||
ENV PREFIX /root/usr/local
|
ENV PREFIX /root/usr/local
|
||||||
ENV PATH $TOOLCHAIN/bin:$PATH
|
|
||||||
|
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
|
@ -55,8 +54,8 @@ RUN curl -L -O https://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz &&
|
||||||
rm openssl-$OPENSSL_VERSION.tar.gz
|
rm openssl-$OPENSSL_VERSION.tar.gz
|
||||||
|
|
||||||
WORKDIR /root/build/openssl-$OPENSSL_VERSION
|
WORKDIR /root/build/openssl-$OPENSSL_VERSION
|
||||||
RUN export ANDROID_NDK_HOME=$NDK && \
|
RUN export ANDROID_NDK_HOME=$NDK PATH=$TOOLCHAIN/bin:$PATH && \
|
||||||
./Configure --prefix=$PREFIX android-arm64 && \
|
./Configure no-shared --prefix=$PREFIX android-arm64 && \
|
||||||
make && make install_sw
|
make && make install_sw
|
||||||
|
|
||||||
WORKDIR /root/build
|
WORKDIR /root/build
|
||||||
|
@ -112,7 +111,6 @@ RUN autoreconf -i && \
|
||||||
--disable-shared \
|
--disable-shared \
|
||||||
--host=$TARGET \
|
--host=$TARGET \
|
||||||
--build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
|
--build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
|
||||||
--with-xml-prefix="$PREFIX" \
|
|
||||||
--without-libxml2 \
|
--without-libxml2 \
|
||||||
--disable-python-bindings \
|
--disable-python-bindings \
|
||||||
--disable-examples \
|
--disable-examples \
|
||||||
|
|
Loading…
Reference in New Issue