package/zlib-ng: fix build failure for PowerPC soft-float

As suggested in this review[1], when building for PowerPC with soft-float
enabled, let's also disable both WITH_POWER8/9 that in order disables
all the possible PowerPC acceleration instructions.

Fixes:
https://autobuild.buildroot.org/results/a0fa5a175c546993d818371a0de93b2e9845a183/

[1]: https://github.com/zlib-ng/zlib-ng/pull/2151/changes#r2803264882

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
This commit is contained in:
Giulio Benetti
2026-05-16 22:31:18 +02:00
committed by Romain Naour
parent d0f43c052c
commit 668b47bdab

View File

@@ -30,13 +30,13 @@ else
ZLIB_NG_CONF_OPTS += -DWITH_NEON=OFF ZLIB_NG_CONF_OPTS += -DWITH_NEON=OFF
endif endif
ifeq ($(BR2_powerpc_power8),y) ifeq ($(BR2_powerpc_power8):$(BR2_POWERPC_SOFT_FLOAT),y:)
ZLIB_NG_CONF_OPTS += -DWITH_POWER8=ON ZLIB_NG_CONF_OPTS += -DWITH_POWER8=ON
else else
ZLIB_NG_CONF_OPTS += -DWITH_POWER8=OFF ZLIB_NG_CONF_OPTS += -DWITH_POWER8=OFF
endif endif
ifeq ($(BR2_powerpc_power9),y) ifeq ($(BR2_powerpc_power9):$(BR2_POWERPC_SOFT_FLOAT),y:)
ZLIB_NG_CONF_OPTS += -DWITH_POWER9=ON ZLIB_NG_CONF_OPTS += -DWITH_POWER9=ON
else else
ZLIB_NG_CONF_OPTS += -DWITH_POWER9=OFF ZLIB_NG_CONF_OPTS += -DWITH_POWER9=OFF