@@ -40,13 +40,13 @@ ENV ARCH=arm \
4040 CPP=aarch64-linux-gnu-cpp \
4141 LD=aarch64-linux-gnu-ld
4242
43- ENV LIZB_VERSION =1.2.13
44- RUN wget https://zlib.net/zlib-${LIZB_VERSION }.tar.gz -O - | tar -xz && \
45- cd zlib-${LIZB_VERSION } && \
43+ ENV ZLIB_VERSION =1.3
44+ RUN wget https://zlib.net/zlib-${ZLIB_VERSION }.tar.gz -O - | tar -xz && \
45+ cd zlib-${ZLIB_VERSION } && \
4646 ./configure --prefix=/usr/aarch64-linux-gnu && \
4747 make -j $(nproc) && \
4848 make install && \
49- cd .. && rm -rf zlib-${LIZB_VERSION };
49+ cd .. && rm -rf zlib-${ZLIB_VERSION };
5050
5151# https://www.openssl.org/source/old/1.1.1/
5252ENV OPENSSL_VERSION=1.1.1q
@@ -99,6 +99,24 @@ RUN wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VER
9999 make install && \
100100 cd .. && rm -rf Python-${PYTHON_VERSION};
101101
102+ ENV PYTHON_VERSION=3.9.18
103+ RUN wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz -O - | tar -xz && \
104+ cd Python-${PYTHON_VERSION} && \
105+ touch config.site-aarch64 && \
106+ echo "ac_cv_buggy_getaddrinfo=no" >> config.site-aarch64 && \
107+ echo "ac_cv_file__dev_ptmx=no" >> config.site-aarch64 && \
108+ echo "ac_cv_file__dev_ptc=no" >> config.site-aarch64 && \
109+ CONFIG_SITE=config.site-aarch64 ./configure \
110+ --enable-optimizations \
111+ --disable-ipv6 \
112+ --prefix=/usr/aarch64-linux-gnu \
113+ --build=aarch64-unknown-linux-gnu \
114+ --host=x86_64-linux-gnu \
115+ --with-build-python=/usr/bin/python3.9 && \
116+ make -j $(nproc) && \
117+ make install && \
118+ cd .. && rm -rf Python-${PYTHON_VERSION};
119+
102120ENV PKG_CONFIG_ALLOW_CROSS=true
103121ENV PKG_CONFIG_ALL_STATIC=true
104122ENV RUSTFLAGS="-C target-feature=-crt-static"
0 commit comments