Skip to content

Commit

Permalink
enable static link for crt and openssl
Browse files Browse the repository at this point in the history
  • Loading branch information
rioroll committed Apr 23, 2023
1 parent b589f87 commit 8f62d58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 8f62d58

Please sign in to comment.