1#
2# Copyright (C) 2009-2016 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=gmp
10PKG_VERSION:=6.1.1
11
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13PKG_SOURCE_URL:=@GNU/gmp/
14PKG_MD5SUM:=e70e183609244a332d80529e7e155a35
15
16HOST_FIXUP:=autoreconf
17
18HOST_BUILD_PARALLEL:=1
19
20include $(INCLUDE_DIR)/host-build.mk
21
22unexport CFLAGS
23
24HOST_CONFIGURE_ARGS += \
25	--enable-static \
26	--disable-shared \
27	--disable-assembly \
28	--enable-cxx \
29	--enable-mpbsd
30
31ifeq ($(GNU_HOST_NAME),x86_64-linux-gnux32)
32HOST_CONFIGURE_ARGS += ABI=x32
33endif
34
35$(eval $(call HostBuild))
36