bulix.org / pastebin

Paste #82866: Untitled ASCII paste by 82.229.165.48

commit a7309085a10adfc89ace0bf1036ec7213ca637b4
Author: Samuel Martin <s.martin49@gmail.com>
Date:   Sat Jan 19 17:12:29 2013 +0100

    python3: fix _decimal module build
    
    Signed-off-by: Samuel Martin <s.martin49@gmail.com>

diff --git a/package/python3/python3.mk b/package/python3/python3.mk
index f62ed43..d795240 100644
--- a/package/python3/python3.mk
+++ b/package/python3/python3.mk
@@ -94,6 +94,14 @@ ifeq ($(BR2_PACKAGE_PYTHON3_ZLIB),y)
 PYTHON3_DEPENDENCIES += zlib
 endif
 
+# For further information about the _decimal module and libmpdec support,
+# refer to Modules/_decimal/README.txt from the python3 source directory.
+ifeq ($(BR2_ARCH_IS_64),y)
+PYTHON_DECIMAL_MACHINE = ansi64
+else
+PYTHON_DECIMAL_MACHINE = ansi32
+endif
+
 PYTHON3_CONF_ENV += \
 	_PROJECT_BASE=$(PYTHON3_DIR) \
 	_PYTHON_HOST_PLATFORM=$(BR2_HOSTARCH) \
@@ -102,6 +110,7 @@ PYTHON3_CONF_ENV += \
 	ac_cv_have_long_long_format=yes \
 	ac_cv_file__dev_ptmx=yes \
 	ac_cv_file__dev_ptc=yes \
+	PYTHON_DECIMAL_WITH_MACHINE=$(PYTHON_DECIMAL_MACHINE) \
 
 PYTHON3_CONF_OPT += \
 	--without-cxx-main 	\
@@ -117,7 +126,8 @@ PYTHON3_MAKE_ENV = \
 	_PROJECT_BASE=$(PYTHON3_DIR) \
 	_PYTHON_HOST_PLATFORM=$(BR2_HOSTARCH) \
 	PYTHON_MODULES_INCLUDE=$(STAGING_DIR)/usr/include \
-	PYTHON_MODULES_LIB="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib"
+	PYTHON_MODULES_LIB="$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib" \
+	PYTHON_DECIMAL_WITH_MACHINE=$(PYTHON_DECIMAL_MACHINE) \
 
 # python distutils adds -L$LIBDIR when linking binary extensions, causing
 # trouble for cross compilation

New paste


Private
Wrap long lines

3 + 4 =