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
Generated
+1 -1
View File
@@ -2058,7 +2058,7 @@ dependencies = [
[[package]]
name = "shadowsocks-rust"
version = "1.15.0-alpha.7"
version = "1.15.0-alpha.8"
dependencies = [
"build-time",
"byte_string",
+3 -4
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