mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-13 21:58:06 +04:00
zlib-ng decides whether to build its POWER8 and POWER9 sources from a
probe that compiles getauxval(AT_HWCAP2) & PPC_FEATURE2_ARCH_2_07 and
nothing else, so it accepts any target whose libc has getauxval. On
mpc85xx that offers POWER8 to an e500v2 and the build fails:
adler32_power8.c:126:13: error: '__builtin_vsx_lxvw4x_v16qi' requires
the '-mvsx' option
POWER8 is ISA 2.07 and POWER9 is ISA 3.0, 64-bit server ISAs that no
32-bit PowerPC in the tree implements, so turn both off for
ARCH=powerpc. powerpc64 keeps them, where they build and zlib-ng gates
them on HWCAP2 at runtime.
Fixes: b6ab56871d ("zlib: switch to zlib-ng 2.3.3 in zlib-compatible mode")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>