mirror of
https://github.com/xcat2/xcat-dep.git
synced 2026-09-12 12:36:23 +00:00
08d59ced0d
For a native build rpm's brp-strip strips the Go binaries; for a cross build (--target-arch riscv64 on x86_64) the host strip cannot handle the foreign ELF and the rpm shipped unstripped 19 MB binaries. Pass -s -w to the Go linker for cross builds only, so the riscv64 rpm is stripped like the native ones; native builds are unchanged.