1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00
aports/main/rust
Sertonix 6f53dfd319 main/rust: wrap llvm-config for CHOST
Upstream intends using CBUILD llvm-config for CHOST. This means that
it needs to be the same llvm version installed to the same prefix with
the same components and all compiler flags need to be compatible with
the cross compiler. All of these might not be true but fixing all of
these is too complicated.

Upstream workarounds include replacing CBUILD with CHOST in some paths
but this doesn't work for abuild.

This APKBUILD only prepends CBUILDROOT to include/link/bin dir and
corrects components by passing --sysroot (added to $CFLAGS by abuild)
and wrapping llvm-config. This is only enought to cross compile on
alpine.

For other cases try changing the wrapper to run the correct (CHOST)
llvm-config with qemu or similar. Or work on a proper fix like
https://github.com/llvm/llvm-project/issues/9777
2025-07-01 19:30:29 +01:00
..
alpine-move-py-scripts-to-share.patch
alpine-target.patch main/rust: add target definition for mips64 2025-06-22 08:12:57 +00:00
APKBUILD main/rust: wrap llvm-config for CHOST 2025-07-01 19:30:29 +01:00
check-rustc
do-not-install-libunwind-source.patch
gcc-eh-libunwind.patch
install-template-shebang.patch
musl-fix-linux_musl_base.patch main/rust: upgrade to 1.88.0 2025-06-27 13:28:19 +02:00
need-rpath.patch
need-ssp_nonshared.patch
no-export-ld-library-path.patch
system-uefi-ld.patch
system-wasm-ld.patch