mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Andreas Bießmann" <andreas@biessmann.de>
To: PTXdsit ML <ptxdist@pengutronix.de>
Cc: OSELAS ML <oselas@community.pengutronix.de>
Subject: [ptxdist] [PATCH 1/7] add fake build type to HOST_CROSS_AUTOCONF
Date: Sun, 12 Feb 2012 13:10:22 +0100	[thread overview]
Message-ID: <1329048628-70349-2-git-send-email-andreas@biessmann.de> (raw)
In-Reply-To: <1329048628-70349-1-git-send-email-andreas@biessmann.de>

If we build a cross toolchain where build == host == target the resulting
tools lack the host-tripplet before the tool name.
This patch introduce a '--build' autoconf switch with guessed (and modified)
build host tripplet from ptxdist to supress the generic autoconf guessing
mechanism in respective tools.

Signed-off-by: Andreas Bießmann <andreas@biessmann.de>
---
 rules/cross-gcc.make     |    1 +
 rules/pre/toolchain.make |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/rules/cross-gcc.make b/rules/cross-gcc.make
index 0923024..88c2376 100644
--- a/rules/cross-gcc.make
+++ b/rules/cross-gcc.make
@@ -68,6 +68,7 @@ CROSS_GCC_ENV	:= $(PTX_HOST_ENV)
 # autoconf
 #
 CROSS_GCC_AUTOCONF_COMMON := \
+	$(PTX_HOST_CROSS_AUTOCONF_BUILD) \
 	$(PTX_HOST_CROSS_AUTOCONF_HOST) \
 	$(PTX_HOST_CROSS_AUTOCONF_TARGET) \
 	\
diff --git a/rules/pre/toolchain.make b/rules/pre/toolchain.make
index ac06e43..47bd212 100644
--- a/rules/pre/toolchain.make
+++ b/rules/pre/toolchain.make
@@ -32,6 +32,7 @@ PTX_HOST_AUTOCONF_HOST				:= --host=$(PTX_CANADIAN_CROSS_HOST)
 PTX_HOST_CROSS_AUTOCONF_HOST			:= --host=$(PTX_CANADIAN_CROSS_HOST)
 endif
 
+PTX_HOST_CROSS_AUTOCONF_BUILD			:= --build=$(GNU_HOST)
 PTX_HOST_CROSS_AUTOCONF_TARGET			:= --target=$(PTX_TOUPLE_TARGET)
 
 PTX_HOST_AUTOCONF_PREFIX			:= --prefix=$(PTXCONF_SYSROOT_HOST)
@@ -42,6 +43,7 @@ PTX_HOST_AUTOCONF := \
 	$(PTX_HOST_AUTOCONF_PREFIX)
 
 PTX_HOST_CROSS_AUTOCONF := \
+	$(PTX_HOST_CROSS_AUTOCONF_BUILD) \
 	$(PTX_HOST_CROSS_AUTOCONF_HOST) \
 	$(PTX_HOST_CROSS_AUTOCONF_TARGET) \
 	$(PTX_HOST_CROSS_AUTOCONF_PREFIX)
-- 
1.7.9


-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2012-02-12 12:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-12 12:10 [ptxdist] [PATCH 0/7] OSELAS.Toolchain: add x86_64-unknown-linux-gnu glibc toolchain Andreas Bießmann
2012-02-12 12:10 ` Andreas Bießmann [this message]
2012-02-12 12:10 ` [ptxdist] [PATCH 2/7] architecture.in: add x86_64 arch Andreas Bießmann
2012-02-12 12:10 ` [ptxdist] [PATCH 3/7] add x86_64-unknown-linux-gnu configuration Andreas Bießmann
2012-02-12 12:10 ` [ptxdist] [PATCH 4/7] fixup_ptxconfigs.sh: add x86_64 target Andreas Bießmann
2012-02-12 12:10 ` [ptxdist] [PATCH 5/7] glibc-headers: prepare for x86_64 build Andreas Bießmann
2012-02-12 12:10 ` [ptxdist] [PATCH 6/7] gcc-4.6.2: add pure64 patch for x86_64 Andreas Bießmann
2012-02-12 12:10 ` [ptxdist] [PATCH 7/7] glibc: force slibdir to /lib Andreas Bießmann
2012-02-13  5:58 ` [ptxdist] [PATCH 0/7] OSELAS.Toolchain: add x86_64-unknown-linux-gnu glibc toolchain Klaus.Hachmeister
2012-02-13  7:36   ` Andreas Bießmann
2012-03-25 10:11 ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1329048628-70349-2-git-send-email-andreas@biessmann.de \
    --to=andreas@biessmann.de \
    --cc=oselas@community.pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox