zlib-ng's build system does not correctly detect if it supports the
Power8 feature. Force it off to fix building for configurations that
don't support the vector builtin functions.
For example, building for BR2_powerpc_601:
warning: implicit declaration of function ‘vec_xl’; did you mean
‘vec_rl’? [-Wimplicit-function-declaration]
93 | vbuf = vec_xl(0, (unsigned char *) buf);
This logic was incorrectly removed in commit 04e26cb7fe
.
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
34 lines
808 B
Makefile
34 lines
808 B
Makefile
################################################################################
|
|
#
|
|
# zlib-ng
|
|
#
|
|
################################################################################
|
|
|
|
ZLIB_NG_VERSION = 2.0.6
|
|
ZLIB_NG_SITE = $(call github,zlib-ng,zlib-ng,$(ZLIB_NG_VERSION))
|
|
ZLIB_NG_LICENSE = Zlib
|
|
ZLIB_NG_LICENSE_FILES = LICENSE.md
|
|
ZLIB_NG_INSTALL_STAGING = YES
|
|
ZLIB_NG_PROVIDES = zlib
|
|
|
|
# Build with zlib compatible API, gzFile support and optimizations on
|
|
ZLIB_NG_CONF_OPTS += \
|
|
-DWITH_GZFILEOP=1 \
|
|
-DWITH_OPTIM=1 \
|
|
-DZLIB_COMPAT=1 \
|
|
-DZLIB_ENABLE_TESTS=OFF
|
|
|
|
# Enable NEON and ACLE on ARM
|
|
ifeq ($(BR2_arm),y)
|
|
ZLIB_NG_CONF_OPTS += -DWITH_ACLE=1 -DWITH_NEON=1
|
|
endif
|
|
|
|
ifeq ($(BR2_powerpc_power8),y)
|
|
ZLIB_NG_CONF_OPTS += -DWITH_POWER8=ON
|
|
else
|
|
ZLIB_NG_CONF_OPTS += -DWITH_POWER8=OFF
|
|
endif
|
|
|
|
|
|
$(eval $(cmake-package))
|