From patchwork Fri Oct 25 12:15:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 286133 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id CD3162C00CC for ; Fri, 25 Oct 2013 23:16:00 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1AA538BD38; Fri, 25 Oct 2013 12:16:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5xq65zmIqlcs; Fri, 25 Oct 2013 12:15:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 875448BD3D; Fri, 25 Oct 2013 12:15:59 +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 068E41BFA35 for ; Fri, 25 Oct 2013 12:15:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 021548CE25 for ; Fri, 25 Oct 2013 12:15:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JnfRT+j-tDel for ; Fri, 25 Oct 2013 12:15:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from loknar.toptech.com.ar (loknar.toptech.com.ar [78.46.79.162]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2C2798CDE6 for ; Fri, 25 Oct 2013 12:15:56 +0000 (UTC) Received: from asgard (host58.190-231-106.telecom.net.ar [190.231.106.58]) (authenticated bits=0) by loknar.toptech.com.ar (8.14.7/8.14.7) with ESMTP id r9PCFovo029980 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 25 Oct 2013 12:15:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1382703355; bh=nPSf2noHmfdDs1uoyQ8CwNYKefQxCa9YwE9J58Tn5/E=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ooII4uDa7mVJVyFNMBEToPYN01jUxucTWeJF7cIcJZYgUmu0dhz/FNPmkSbzab7oG YwGHMkAW/mNL9m4/C+1Ow5QqZPg0N3dh73FupCb+KWL0MP3RjM8kQA7B/qqrBDKZol E6TTe3Kml01KgD9OiyCw6tmpYvanyWoZcfBVcP3A= Received: by asgard (sSMTP sendmail emulation); Fri, 25 Oct 2013 09:15:45 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Fri, 25 Oct 2013 09:15:21 -0300 Message-Id: <1382703323-31038-3-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 1.8.1.5 In-Reply-To: <1382703323-31038-1-git-send-email-gustavo@zacarias.com.ar> References: <1382703323-31038-1-git-send-email-gustavo@zacarias.com.ar> X-Virus-Scanned: clamav-milter 0.97.8 at loknar X-Virus-Status: Clean Subject: [Buildroot] [PATCH 3/5] python-thrift: fix cross building 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 The C code (fastbinary.so) wasn't built using the cross compiler, hence it was unusable. Fix it. Signed-off-by: Gustavo Zacarias Acked-by: Ryan Barnett --- package/python-thrift/python-thrift.mk | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/package/python-thrift/python-thrift.mk b/package/python-thrift/python-thrift.mk index 4cd35e5..65733d4 100644 --- a/package/python-thrift/python-thrift.mk +++ b/package/python-thrift/python-thrift.mk @@ -9,13 +9,18 @@ PYTHON_THRIFT_SOURCE = thrift-$(PYTHON_THRIFT_VERSION).tar.gz PYTHON_THRIFT_SITE = http://pypi.python.org/packages/source/t/thrift PYTHON_THRIFT_LICENSE = Apache-2.0 PYTHON_THRIFT_LICENSE_FILES = README - PYTHON_THRIFT_DEPENDENCIES = python define PYTHON_THRIFT_BUILD_CMDS (cd $(@D); \ - PYTHONXCPREFIX="$(STAGING_DIR)/usr/" \ - LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \ + CC="$(TARGET_CC)" \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDSHARED="$(TARGET_CROSS)gcc -shared" \ + CROSS_COMPILING=yes \ + _python_sysroot=$(STAGING_DIR) \ + _python_srcdir=$(BUILD_DIR)/python$(PYTHON_VERSION) \ + _python_prefix=/usr \ + _python_exec_prefix=/usr \ $(HOST_DIR)/usr/bin/python setup.py build) endef