From 774b7c7b5befac045b639de8451ce270c6114a9e Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Sun, 22 Dec 2024 22:25:06 +0100 Subject: [PATCH] staticbuilds: Make mac builds statically linked This is the default on musl, but not other libcen --- .github/workflows/staticbuild.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/staticbuild.yml b/.github/workflows/staticbuild.yml index 3349093e7..d6f09a0cc 100644 --- a/.github/workflows/staticbuild.yml +++ b/.github/workflows/staticbuild.yml @@ -64,8 +64,8 @@ jobs: rustup target add aarch64-apple-darwin - name: Build run: | - cargo build --release --target aarch64-apple-darwin - cargo build --release --target x86_64-apple-darwin + RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target aarch64-apple-darwin + RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target x86_64-apple-darwin - name: Compress run: | tar -cazf fish-macos-aarch64.tar.xz -C target/aarch64-apple-darwin/release/ fish{,_indent,_key_reader}