21 lines
793 B
Makefile
21 lines
793 B
Makefile
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
||
|
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
|
||
|
|
||
|
PKG_NAME="gmp"
|
||
|
PKG_VERSION="6.2.1"
|
||
|
PKG_SHA256="fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2"
|
||
|
PKG_LICENSE="LGPLv3+"
|
||
|
PKG_SITE="http://gmplib.org/"
|
||
|
PKG_URL="https://gmplib.org/download/gmp/${PKG_NAME}-${PKG_VERSION}.tar.xz"
|
||
|
PKG_DEPENDS_HOST="ccache:host m4:host"
|
||
|
PKG_DEPENDS_TARGET="toolchain"
|
||
|
PKG_LONGDESC="A library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers."
|
||
|
PKG_BUILD_FLAGS="+pic:host"
|
||
|
|
||
|
PKG_CONFIGURE_OPTS_HOST="--enable-cxx --enable-static --disable-shared"
|
||
|
|
||
|
pre_configure_host() {
|
||
|
export CPPFLAGS="${CPPFLAGS} -fexceptions"
|
||
|
}
|