fix: static keyfork: build with +crt-static on -crt-static rust

This commit is contained in:
ryan 2024-03-08 19:32:04 -05:00
parent f911d145e8
commit 383bdcb3ab
No known key found for this signature in database
GPG key ID: 8E401478A3FBEF72

View file

@ -34,12 +34,11 @@ COPY --from=stagex/binutils . /
ENV RUST_BACKTRACE=1
ENV NETTLE_STATIC=yes
ENV PCSC_LIB_NAME=static=pcsclite
ENV RUSTFLAGS='-C codegen-units=1'
ENV RUSTFLAGS='-C codegen-units=1 -C target-feature=+crt-static'
RUN --network=none \
cargo build \
--frozen \
--release \
--features static \
--target x86_64-unknown-linux-musl \
--bin keyfork