Skip to content

Conversation

@ziyao233
Copy link
Member

@ziyao233 ziyao233 commented May 8, 2025

LLVM doesn't support -fno-plt on RISC-V and LoongArch and starts emitting a warning if it's supplied on unsupported targets since LLVM 20, causing various errors when configuring packages. Let's remove the flag on riscv64 and loongarch64.

As we have started moving to LLVM 20, the problem must be mitigated by stripping -fno-plt away from CFLAGS/LDFLAGS on riscv64 and loongarch64.

Link: llvm/llvm-project#124081
Reference: #3594 (comment)

LLVM doesn't support -fno-plt on RISC-V and LoongArch and starts
emitting a warning if it's supplied on unsupported targets since LLVM
20, causing various errors when configuring packages. Let's remove the
flag on riscv64 and loongarch64.

As we have started moving to LLVM 20, the problem must be mitigated by
stripping -fno-plt away from CFLAGS/LDFLAGS on riscv64 and loongarch64.

Link: llvm/llvm-project#124081
Reference: eweOS#3594 (comment)
@ziyao233 ziyao233 merged commit bcc8ae1 into eweOS:pacman May 8, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant