package/libs/zlib: Add ARM and NEON optimizations
[openwrt/openwrt.git] / package / libs / zlib / Makefile
index 597d0b6871ffa087830811454595a41d61ac3815..3602e629cf4a9ec2029acd8adb49a782e69f1fc2 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=zlib
 PKG_VERSION:=1.2.11
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@SF/libpng http://www.zlib.net
@@ -49,6 +49,11 @@ endef
 
 TARGET_CFLAGS += $(FPIC)
 
+ifneq ($(findstring neon,$(CONFIG_TARGET_OPTIMIZATION)),)
+       CMAKE_OPTIONS += \
+               -DARMv8=ON
+endif
+
 define Build/InstallDev
        mkdir -p $(1)/usr/include
        $(CP)   $(PKG_INSTALL_DIR)/usr/include/z{conf,lib}.h \