From patchwork Thu Jan 15 22:48:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Zwing?= X-Patchwork-Id: 429624 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 61F9E1401EB for ; Fri, 16 Jan 2015 09:49:14 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B3BC88ADB4; Thu, 15 Jan 2015 22:49:13 +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 crxW2dbIIADP; Thu, 15 Jan 2015 22:49:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id A8F548AE68; Thu, 15 Jan 2015 22:49:12 +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 7D7DA1C2845 for ; Thu, 15 Jan 2015 22:49:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 798188ADEA for ; Thu, 15 Jan 2015 22:49:11 +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 rOjnxbMRC27v for ; Thu, 15 Jan 2015 22:49:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [81.169.146.163]) by whitealder.osuosl.org (Postfix) with ESMTPS id BEE618ADB4 for ; Thu, 15 Jan 2015 22:49:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1421362146; l=841; s=domk; d=dawncrow.de; h=Content-Transfer-Encoding:Content-Type:Subject:To:MIME-Version:From: Date; bh=+C4RvsXfml/wGumYro8jNIqf9T0=; b=g9hoMHC2rQyEjweMnU7Kdre3/WL08sJAuZy89Tmqh2OykZMWpigz8LtetMapf7tpmAu MTi4ft4lPuCm2fM+ZO9zsOsUSLzOD9YuLV8Dc19Bui/yGJwczTbB/jTT1yeuGsrgD/leY i7E5SV1Yw0rldZbV4CaN01ccCD7MylAu5Oc= X-RZG-AUTH: :ImkWY2CseuihIZy6ZWWciR6unPh5JPSWE7VxbdUCFBN5njG7Q28CH4RMcH2I X-RZG-CLASS-ID: mo00 Received: from [192.168.178.50] ([185.61.121.96]) by smtp.strato.de (RZmta 36.3 AUTH) with ESMTPSA id Q00764r0FMn64FR (using TLSv1.2 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) for ; Thu, 15 Jan 2015 23:49:06 +0100 (CET) Message-ID: <54B843D7.1030602@dawncrow.de> Date: Thu, 15 Jan 2015 23:48:55 +0100 From: =?UTF-8?B?QW5kcsOpIEhlbnRzY2hlbA==?= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: buildroot@busybox.net Subject: [Buildroot] [PATCH] toolchain: Use the correct target name X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" When using an external toolchain we need to use the toolchain prefix for the staging directory and e.g. for configure. Signed-off-by: André Hentschel --- This fixes cross compiling Wine (not yet upstream because of that). package/Makefile.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/Makefile.in b/package/Makefile.in index 2055f00..0a00c7e 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -36,7 +36,11 @@ $(error BR2_TOOLCHAIN_BUILDROOT_VENDOR cannot be 'unknown'. \ endif # Compute GNU_TARGET_NAME +ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y) GNU_TARGET_NAME = $(ARCH)-$(TARGET_VENDOR)-$(TARGET_OS)-$(LIBC)$(ABI) +else +GNU_TARGET_NAME = $(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PREFIX)) +endif # FLAT binary format needs uclinux ifeq ($(BR2_BINFMT_FLAT),y)