From 765f241063939c14bc3a18777b7a79fcd44a37f8 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Fri, 21 Apr 2017 15:00:26 +0200 Subject: [PATCH] package/libpng: cleanup NEON support options Suggested by Thomas: http://lists.busybox.net/pipermail/buildroot/2017-April/189086.html Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- package/libpng/libpng.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/package/libpng/libpng.mk b/package/libpng/libpng.mk index 2491157028..7ae1dd59f7 100644 --- a/package/libpng/libpng.mk +++ b/package/libpng/libpng.mk @@ -14,7 +14,12 @@ LIBPNG_INSTALL_STAGING = YES LIBPNG_DEPENDENCIES = host-pkgconf zlib HOST_LIBPNG_DEPENDENCIES = host-pkgconf host-zlib LIBPNG_CONFIG_SCRIPTS = libpng$(LIBPNG_SERIES)-config libpng-config -LIBPNG_CONF_OPTS = $(if $(BR2_ARM_CPU_HAS_NEON),--enable-arm-neon=yes,--enable-arm-neon=no) + +ifeq ($(BR2_ARM_CPU_HAS_NEON),y) +LIBPNG_CONF_OPTS += --enable-arm-neon +else +LIBPNG_CONF_OPTS += --disable-arm-neon +endif $(eval $(autotools-package)) $(eval $(host-autotools-package)) -- 2.30.2