From 2ff8a1f02db983f605491628ab7e1924714adc92 Mon Sep 17 00:00:00 2001 From: Frankie Dintino Date: Tue, 21 Nov 2023 15:41:27 -0500 Subject: [PATCH] fix: Build musl librav1e deploy artifacts with crt static In order for the rav1e shared library to work on glibc systems, it needs musl libc to be statically linked. Fixes #3242 --- .github/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 94fbe8a32b..29c7ea43b1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -252,9 +252,9 @@ jobs: # "cargo build" command to "cargo cinstall" CROSS_BUILD_DOCKERFILE: ./cross/Dockerfile.libs CARGO_TARGET_I686_UNKNOWN_LINUX_MUSL_RUSTFLAGS: - "-C target-feature=-crt-static" + "-C target-feature=+crt-static" CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUSTFLAGS: - "-C target-feature=-crt-static" + "-C target-feature=+crt-static" run: | cp ~/.cargo/bin/cargo-c* $(dirname $(rustup which cargo)) cross build --target ${{ matrix.target }} --profile release-strip @@ -269,7 +269,7 @@ jobs: if: matrix.build == 'sdk' && matrix.target == 'x86_64-unknown-linux-musl' env: RUSTFLAGS: - "-C target-feature=-crt-static -C target-cpu=${{ matrix.target_cpu }}" + "-C target-feature=+crt-static -C target-cpu=${{ matrix.target_cpu }}" run: | cargo cinstall --target ${{ matrix.target }} \ --prefix dist \