4b44d310e9
Version 2.5.0 enables the new libmpdec++ library by default: http://www.bytereef.org/mpdecimal/changelog.html#version-2-5-0 Adapt the existing patch, to allow static build of this C++ library. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> [yann.morin.1998@free.fr: - meld the C++-enabling and the static-patch commits into one ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
32 lines
920 B
Makefile
32 lines
920 B
Makefile
################################################################################
|
|
#
|
|
# mpdecimal
|
|
#
|
|
################################################################################
|
|
|
|
MPDECIMAL_SITE = http://www.bytereef.org/software/mpdecimal/releases
|
|
MPDECIMAL_VERSION = 2.5.0
|
|
MPDECIMAL_INSTALL_STAGING = YES
|
|
MPDECIMAL_LICENSE = BSD-2-Clause
|
|
MPDECIMAL_LICENSE_FILES = LICENSE.txt
|
|
MPDECIMAL_CONF_OPTS = LD="$(TARGET_CC)"
|
|
MPDECIMAL_AUTORECONF = YES
|
|
|
|
# On i386, by default, mpdecimal tries to uses <fenv.h> which is not
|
|
# available in musl/uclibc. So in this case, we tell mpdecimal to use
|
|
# the generic 32 bits code, which is anyway the one used on ARM,
|
|
# PowerPC, etc.
|
|
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
|
|
ifeq ($(BR2_i386),y)
|
|
MPDECIMAL_CONF_ENV += MACHINE=ansi32
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
|
|
MPDECIMAL_CONF_OPTS += --enable-cxx
|
|
else
|
|
MPDECIMAL_CONF_OPTS += --disable-cxx
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|