From patchwork Mon Nov 11 14:06:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Barnett X-Patchwork-Id: 1192946 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.137; helo=fraxinus.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 fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47BXkD34l6z9s4Y for ; Tue, 12 Nov 2019 01:07:00 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9412886381; Mon, 11 Nov 2019 14:06:58 +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 eFsvNq0ZMo3x; Mon, 11 Nov 2019 14:06:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id EB0C386364; Mon, 11 Nov 2019 14:06:57 +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 B320A1BF352 for ; Mon, 11 Nov 2019 14:06:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id ACB7785055 for ; Mon, 11 Nov 2019 14:06:56 +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 kxz7FNGxAzpT for ; Mon, 11 Nov 2019 14:06:56 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from da1vs02.rockwellcollins.com (da1vs02.rockwellcollins.com [205.175.227.29]) by hemlock.osuosl.org (Postfix) with ESMTPS id D0C5D82713 for ; Mon, 11 Nov 2019 14:06:55 +0000 (UTC) IronPort-SDR: SAqIwZOU0Mwx9qKzjjf5TpVfkR4q1CQ01HmIOT7eedFtfBTRKKKqkJ6IHb0P0WEYbWoHleZFR8 DEtaoUdmF4jdRaHkQ3w/Jdjx01NxVDY6HF1DVia4PFCpa4/ecMXC8erVp4y10+tK1ci8s5AGG8 IjtoTzbkoehyBG3+O8rIEsloLn9r+IgJ4r1GhaIQpxcpS7IGRLGRrQHJpjyHGaamKDuDLLxeVD bEnslUWZRtzYOd2q10/HRQ9kKLaspZCstauIsnF32Cd6fx2+HU8F+Cw7mg4j5eka8c3HINjM5u CN4= Received: from ofwda1n02.rockwellcollins.com (HELO crulimr02.rockwellcollins.com) ([205.175.227.14]) by da1vs02.rockwellcollins.com with ESMTP; 11 Nov 2019 08:06:55 -0600 X-Received: from bacon.rockwellcollins.com (unknown [192.168.6.146]) by crulimr02.rockwellcollins.com (Postfix) with ESMTP id CF83560257; Mon, 11 Nov 2019 08:06:54 -0600 (CST) From: Ryan Barnett To: buildroot@buildroot.org Date: Mon, 11 Nov 2019 08:06:42 -0600 Message-Id: <20191111140643.2629-1-ryan.barnett@rockwellcollins.com> X-Mailer: git-send-email 2.18.0 Subject: [Buildroot] [PATCH 1/2] package/pkg-python: use HOST_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 building host python packages, we need to ensure that distutils package types utilize HOST_CONFIGURE_OPTS. This ensures that the correct linker and compiler environment variables are set to compile utilizing the host directory. It was discovered that when compiling a host-python package, it was using linking against the build machines library folder instead of the host folder because LDFLAGS was not properly set and was improperly detecting whether or not a shared or static library was present in the host folder. Signed-off-by: Ryan Barnett --- package/pkg-python.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/pkg-python.mk b/package/pkg-python.mk index be1ce071df..8e4c7e5795 100644 --- a/package/pkg-python.mk +++ b/package/pkg-python.mk @@ -52,7 +52,8 @@ PKG_PYTHON_DISTUTILS_INSTALL_STAGING_OPTS = \ # Host distutils-based packages HOST_PKG_PYTHON_DISTUTILS_ENV = \ PATH=$(BR_PATH) \ - PYTHONNOUSERSITE=1 + PYTHONNOUSERSITE=1 \ + $(HOST_CONFIGURE_OPTS) HOST_PKG_PYTHON_DISTUTILS_INSTALL_OPTS = \ --prefix=$(HOST_DIR)