put CC inline

This commit is contained in:
zonyitoo
2022-07-20 01:23:50 +08:00
parent b0af7df6b2
commit ca0e85d367
2 changed files with 4 additions and 5 deletions

View File

@@ -30,11 +30,10 @@ RUN case "$TARGETARCH" in \
&& wget -qO- "https://musl.cc/$MUSL-cross.tgz" | tar -xzC /root/ \
&& PATH="/root/$MUSL-cross/bin:$PATH" \
&& CC=/root/$MUSL-cross/bin/$MUSL-gcc \
&& echo "CC=$CC" \
&& rustup override set nightly \
&& rustup target add $RUST_TARGET \
&& RUSTFLAGS="-C linker=$CC" \
&& CC=$CC \
&& cargo build --target "$RUST_TARGET" --release --features "local-tun local-redir armv8 neon stream-cipher aead-cipher-2022" \
&& rustup target add "$RUST_TARGET" \
&& RUSTFLAGS="-C linker=$CC" CC=$CC cargo build --target "$RUST_TARGET" --release --features "local-tun local-redir armv8 neon stream-cipher aead-cipher-2022" \
&& mv target/$RUST_TARGET/release/ss* target/release/
FROM alpine:3.16 AS sslocal