mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 08:07:24 +04:00
PHP's configure script probes __atomic_exchange_1 as an external function on riscv64, which only resolves against libatomic, and so links the library although no binary references an atomic symbol. The riscv64-only dependency and linker flag paper over that. Link with --as-needed so the unused library is dropped and remove both; mips and riscv64 builds import no atomic symbols. Signed-off-by: Daniel Golle <daniel@makrotopia.org>