From patchwork Sat Nov 17 22:23:59 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 199877 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 98C182C0086 for ; Sun, 18 Nov 2012 09:24:53 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7955D8CDC0; Sat, 17 Nov 2012 22:24:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KyJtUSlE5w-6; Sat, 17 Nov 2012 22:24:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 29E548D0BC; Sat, 17 Nov 2012 22:24:37 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 848A18F74A for ; Sat, 17 Nov 2012 22:24:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 156AC85BDF for ; Sat, 17 Nov 2012 22:24:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3ANJ8fWdAy9V for ; Sat, 17 Nov 2012 22:24:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (mail.free-electrons.com [88.190.12.23]) by whitealder.osuosl.org (Postfix) with ESMTP id 9B3D681C27 for ; Sat, 17 Nov 2012 22:24:27 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id 26F5E180; Sat, 17 Nov 2012 23:24:21 +0100 (CET) Received: from localhost (46.130.200.77.rev.sfr.net [77.200.130.46]) by mail.free-electrons.com (Postfix) with ESMTPSA id 5439A13D for ; Sat, 17 Nov 2012 23:24:13 +0100 (CET) From: Thomas Petazzoni To: buildroot@busybox.net Date: Sat, 17 Nov 2012 23:23:59 +0100 Message-Id: <7020eae0800f390bf69f92dfe2e060dc09821abf.1353191025.git.thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Subject: [Buildroot] [PATCH 01/10] python: use default configure commands to get shared build X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net 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 --- 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