diff --git a/.github/workflows/staticbuild.yml b/.github/workflows/staticbuild.yml index e49908209..da8db230a 100644 --- a/.github/workflows/staticbuild.yml +++ b/.github/workflows/staticbuild.yml @@ -32,7 +32,7 @@ jobs: sudo apt install musl-tools crossbuild-essential-arm64 -y - name: Build run: | - CMAKE_WITH_GETTEXT=0 CC=aarch64-linux-gnu-gcc RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc -C link-arg=-lgcc" cargo build --release --target aarch64-unknown-linux-musl + CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2" CMAKE_WITH_GETTEXT=0 CC=aarch64-linux-gnu-gcc RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc -C link-arg=-lgcc -C link-arg=-D_FORTIFY_SOURCE=0" cargo build --release --target aarch64-unknown-linux-musl cargo build --release --target x86_64-unknown-linux-musl - name: Compress run: |