mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
staticbuilds: Fix aarch64 cross-compile
We get "undefined reference to `__memmove_chk'" when compiling pcre2 (via pcre2-sys) on newer Ubuntu. That one is used with higher fortify_source levels, and Ubuntu 24.04 defaults to 3, while my arch system (where I cannot reproduce) defaults to 2.
This commit is contained in:
parent
50c737fa55
commit
46ce01223b
1 changed files with 1 additions and 1 deletions
2
.github/workflows/staticbuild.yml
vendored
2
.github/workflows/staticbuild.yml
vendored
|
@ -32,7 +32,7 @@ jobs:
|
||||||
sudo apt install musl-tools crossbuild-essential-arm64 -y
|
sudo apt install musl-tools crossbuild-essential-arm64 -y
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
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
|
cargo build --release --target x86_64-unknown-linux-musl
|
||||||
- name: Compress
|
- name: Compress
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue