Skip to contentSkip to conversation

Fix regression in Python build on 64 bits system.

PATCH New Maxime Ripard 2 participants 2 messages Aug 29, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Fix regression in Python build on 64 bits system.

Commit 009d8fceab4db7815502e4b0565fe0ef531d512c introduced --enable-shared --disable-static options for the host autotools packages, ultimately causing a regression on the host-python build, leading to a number of critical modules not being built on the target python on 64 bits system. Introduce a quick fix for the release and before a deeper fix.

---
 package/python/python.mk |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
package/python/python.mk +13 -0
index c2839b7..724fd1a 100644
@@ -37,6 +37,19 @@ HOST_PYTHON_MAKE_ENV = \
 
 HOST_PYTHON_AUTORECONF = YES
 
+define HOST_PYTHON_CONFIGURE_CMDS
+	(cd $(@D) && rm -rf config.cache; \
+	        $(HOST_CONFIGURE_OPTS) \
+		CFLAGS="$(HOST_CFLAGS)" \
+		LDFLAGS="$(HOST_LDFLAGS)" \
+                $(HOST_PYTHON_CONF_ENV) \
+		./configure \
+		--prefix="$(HOST_DIR)/usr" \
+		--sysconfdir="$(HOST_DIR)/etc" \
+		$(HOST_PYTHON_CONF_OPT) \
+	)
+endef
+
 PYTHON_DEPENDENCIES  = host-python libffi
 
 HOST_PYTHON_DEPENDENCIES = host-expat
Signature · 1 line
1.7.4.1
#1 lore raw

PATCH 2/2 Fix regression in Python build on 64 bits system.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Maxime" == Maxime Ripard <[email protected]> writes:

Maxime> Commit 009d8fceab4db7815502e4b0565fe0ef531d512c introduced Maxime> --enable-shared --disable-static options for the host autotools Maxime> packages, ultimately causing a regression on the host-python Maxime> build, leading to a number of critical modules not being built Maxime> on the target python on 64 bits system. Introduce a quick fix Maxime> for the release and before a deeper fix.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard