tools: expat: fix build on older host systems
[openwrt/openwrt.git] / tools / expat / Makefile
1 #
2 # Copyright (C) 2006-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=expat
11 PKG_VERSION:=2.2.2
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_HASH:=4376911fcf81a23ebd821bbabc26fd933f3ac74833f74924342c29aad2c86046
15 PKG_SOURCE_URL:=@SF/expat
16
17 HOST_BUILD_PARALLEL:=1
18
19 include $(INCLUDE_DIR)/host-build.mk
20
21 HOST_CONFIGURE_VARS += \
22 CPPFLAGS="$(HOST_CFLAGS) -DXML_POOR_ENTROPY"
23
24 define Host/Install
25 $(MAKE) -C $(HOST_BUILD_DIR) install
26 endef
27
28 $(eval $(call HostBuild))