From 8f62d58362f2e9dba0eb92410fbcbfb07b0b54bf Mon Sep 17 00:00:00 2001 From: rio Date: Sun, 23 Apr 2023 14:59:05 +0800 Subject: [PATCH] enable static link for crt and openssl --- docker/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 3267e69..c66160b 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -8,5 +8,6 @@ RUN cd /opt/vendor/ && tar -xzf openssl-1.1.1s.tar.gz && cd openssl-1.1.1s && ./ # strip the m64 flag from makefile as we targets 32bit build RUN cd /opt/vendor/openssl-1.1.1s && sed -i "s/-m64//g" Makefile && make && make install +ENV OPENSSL_STATIC=yes ENV OPENSSL_DIR=/usr/local/ssl -ENV CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_MUSL_RUSTFLAGS="$CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_MUSL_RUSTFLAGS -C link-arg=-latomic" +ENV CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_MUSL_RUSTFLAGS="$CARGO_TARGET_MIPSEL_UNKNOWN_LINUX_MUSL_RUSTFLAGS -C link-arg=-latomic -C target-feature=+crt-static"