source: trunk/tools/gmp/Makefile @ 17717

Last change on this file since 17717 was 17717, checked in by nbd, 7 years ago

gmp: upgrade to 4.3.1 and fix compile on 64-bit mac os x

File size: 792 bytes
Line 
1#
2# Copyright (C) 2009 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:=4.3.1
11
12PKG_SOURCE_URL:=@GNU/gmp/
13PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14PKG_MD5SUM:=26cec15a90885042dd4a15c4003b08ae
15
16include $(INCLUDE_DIR)/host-build.mk
17
18unexport CFLAGS
19
20ifeq ($(HOST_OS),Darwin)
21  GNU_HOST_NAME:=
22  HOST_CONFIGURE_ARGS:=$(filter-out --target= --build= --host=,$(HOST_CONFIGURE_ARGS))
23endif
24
25HOST_CONFIGURE_ARGS += \
26        --enable-static \
27        --disable-shared \
28        --enable-cxx \
29        --enable-mpbsd
30
31define Host/Configure
32        (cd $(HOST_BUILD_DIR)/$(3); \
33                $(HOST_CONFIGURE_CMD) \
34                $(HOST_CONFIGURE_VARS) \
35                $(HOST_CONFIGURE_ARGS); \
36        )
37endef
38
39
40$(eval $(call HostBuild))
Note: See TracBrowser for help on using the repository browser.