All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 01/10] python: use default configure commands to get shared build
Date: Sat, 17 Nov 2012 23:23:59 +0100	[thread overview]
Message-ID: <7020eae0800f390bf69f92dfe2e060dc09821abf.1353191025.git.thomas.petazzoni@free-electrons.com> (raw)
In-Reply-To: <cover.1353191025.git.thomas.petazzoni@free-electrons.com>

Commit 3c90f754961c6d99059c0b6d0a66bc797a3c017b made Python use a
special ./configure command in order to avoid --enable-shared
--disable-static being passed, because it was causing issues when
building certain modules for a 64 bits system.

However, not having a shared libpython2.7 library for the host
prevents the libxml2 Python binding to get built.

So instead, we use the default configure command, but we add
--enable-static which is needed for Python to build correctly.

Note that we tested the build of Python on a 64 bits host as well as
the build of Python for a 64 bits target, and both went fine, with all
modules built properly.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/python/python.mk |   14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/package/python/python.mk b/package/python/python.mk
index 87237bb..e0ec9bb 100644
--- a/package/python/python.mk
+++ b/package/python/python.mk
@@ -17,6 +17,7 @@ PYTHON_LICENSE_FILES = LICENSE
 # third-party Python modules.
 
 HOST_PYTHON_CONF_OPT += 	\
+	--enable-static		\
 	--without-cxx-main 	\
 	--disable-sqlite3	\
 	--disable-tk		\
@@ -38,19 +39,6 @@ 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 host-zlib
-- 
1.7.9.5

  reply	other threads:[~2012-11-17 22:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-17 22:23 [Buildroot] [pull request] Pull request for branch misc-fixes Thomas Petazzoni
2012-11-17 22:23 ` Thomas Petazzoni [this message]
2012-11-17 22:24 ` [Buildroot] [PATCH 02/10] libxml2: add support for building host library with python support Thomas Petazzoni
2012-11-17 22:24 ` [Buildroot] [PATCH 03/10] mesa3d: requires host-libxml2 and host-python to generate some files Thomas Petazzoni
2012-11-17 22:24 ` [Buildroot] [PATCH 04/10] libatomic_ops: bump to version 7.2 Thomas Petazzoni
2012-11-17 22:24 ` [Buildroot] [PATCH 05/10] gnutls: fix build failure due to non-existing gets in recent C libraries Thomas Petazzoni
2012-11-17 22:24 ` [Buildroot] [PATCH 06/10] gsl: fix build on !i386 uClibc Thomas Petazzoni
2012-11-17 22:24 ` [Buildroot] [PATCH 07/10] libffi: make thread support optional Thomas Petazzoni
2012-11-17 22:46   ` Peter Korsgaard
2012-11-17 22:24 ` [Buildroot] [PATCH 08/10] php: fix C++ link issue Thomas Petazzoni
2012-11-17 22:24 ` [Buildroot] [PATCH 09/10] attr: fix static build Thomas Petazzoni
2012-11-17 22:24 ` [Buildroot] [PATCH 10/10] dbus: uses fork(), requires MMU Thomas Petazzoni
2012-11-17 22:54 ` [Buildroot] [pull request] Pull request for branch misc-fixes Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7020eae0800f390bf69f92dfe2e060dc09821abf.1353191025.git.thomas.petazzoni@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.