From patchwork Mon Nov 11 14:06:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Barnett X-Patchwork-Id: 1192949 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=rockwellcollins.com Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47BXp013b7z9sPj for ; Tue, 12 Nov 2019 01:10:16 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6639D87EA0; Mon, 11 Nov 2019 14:10:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NEgp0p08bRY9; Mon, 11 Nov 2019 14:10:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 59E1087E56; Mon, 11 Nov 2019 14:10:09 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id AAB5C1BF352 for ; Mon, 11 Nov 2019 14:10:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A41B087E5D for ; Mon, 11 Nov 2019 14:10:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wL18q7XT8JCs for ; Mon, 11 Nov 2019 14:10:07 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from ch3vs05.rockwellcollins.com (ch3vs05.rockwellcollins.com [205.175.226.130]) by hemlock.osuosl.org (Postfix) with ESMTPS id E4FF787E56 for ; Mon, 11 Nov 2019 14:10:06 +0000 (UTC) IronPort-SDR: ZLVO3+6G5HZFaLFZ47OD4cCpSjHkxq85IXheVGi4htX96vaRI0g8i6Jsx5AuVQUUcv98tI05kl g6EP0Rw/WGwnqFEcd5T30iB4d1/h+KKuDsTMzzPB0VSfvpY8CpBMk1Urse6zW3b4mh2ZK/9nFF tjT2WFwUp7NjfyiMZw5HIXX9AgL3kQYy0CKIbUPhBQjiZbg1xX4GLARiQDD9nPtneeJbxLSFAl A5tdafB8GQegarvdjiTZyJLE5w+3LDtKOrsxZKPdPfnTwZw/xwDW3J9saxFt5RTjMweMcndd5b aB8= Received: from ofwch3n02.rockwellcollins.com (HELO crulimr02.rockwellcollins.com) ([205.175.226.14]) by ch3vs05.rockwellcollins.com with ESMTP; 11 Nov 2019 08:07:01 -0600 X-Received: from bacon.rockwellcollins.com (unknown [192.168.6.146]) by crulimr02.rockwellcollins.com (Postfix) with ESMTP id F12F7601D7; Mon, 11 Nov 2019 08:07:00 -0600 (CST) From: Ryan Barnett To: buildroot@buildroot.org Date: Mon, 11 Nov 2019 08:06:43 -0600 Message-Id: <20191111140643.2629-2-ryan.barnett@rockwellcollins.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20191111140643.2629-1-ryan.barnett@rockwellcollins.com> References: <20191111140643.2629-1-ryan.barnett@rockwellcollins.com> Subject: [Buildroot] [PATCH 2/2] package/pkg-python: use TARGET_CONFIGURE_OPTS for distutils X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ryan Barnett , Thomas Petazzoni MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" When compiling a distutils python package, use TARGET_CONFIGURE_OPTS for the environment to ensure that all the environment variables for cross compilation with buildroot are correct. Signed-off-by: Ryan Barnett --- package/pkg-python.mk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/package/pkg-python.mk b/package/pkg-python.mk index 8e4c7e5795..15438bdcb0 100644 --- a/package/pkg-python.mk +++ b/package/pkg-python.mk @@ -27,9 +27,7 @@ endef # Target distutils-based packages PKG_PYTHON_DISTUTILS_ENV = \ PATH=$(BR_PATH) \ - CC="$(TARGET_CC)" \ - CFLAGS="$(TARGET_CFLAGS)" \ - LDFLAGS="$(TARGET_LDFLAGS)" \ + $(TARGET_CONFIGURE_OPTS) \ LDSHARED="$(TARGET_CROSS)gcc -shared" \ PYTHONPATH="$(if $(BR2_PACKAGE_PYTHON3),$(PYTHON3_PATH),$(PYTHON_PATH))" \ PYTHONNOUSERSITE=1 \