2
0

Makefile 696 B

1234567891011121314151617181920212223242526272829303132333435
  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. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=gmp
  9. PKG_VERSION:=6.1.2
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  11. PKG_SOURCE_URL:=@GNU/gmp/
  12. PKG_HASH:=87b565e89a9a684fe4ebeeddb8399dce2599f9c9049854ca8c0dfbdea0e21912
  13. HOST_FIXUP:=autoreconf
  14. HOST_BUILD_PARALLEL:=1
  15. include $(INCLUDE_DIR)/host-build.mk
  16. unexport CFLAGS
  17. HOST_CONFIGURE_ARGS += \
  18. --enable-static \
  19. --disable-shared \
  20. --disable-assembly \
  21. --enable-cxx \
  22. --enable-mpbsd
  23. ifeq ($(GNU_HOST_NAME),x86_64-linux-gnux32)
  24. HOST_CONFIGURE_ARGS += ABI=x32
  25. endif
  26. $(eval $(call HostBuild))