Skip to content

Commit

Permalink
put CC inline
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Jul 19, 2022
1 parent b0af7df commit ca0e85d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca0e85d

Please sign in to comment.