From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] package/clang: default linker to the cross GNU
Date: Sun, 21 Oct 2018 16:29:00 +0200 [thread overview]
Message-ID: <20181021162900.4c43e6f4@windsurf> (raw)
In-Reply-To: <1540124495-63551-1-git-send-email-matthew.weber@rockwellcollins.com>
Hello,
On Sun, 21 Oct 2018 07:21:35 -0500, Matt Weber wrote:
> By default clang is assuming the system linker /usr/bin/ld. This
> patchset updates the default to point at the cross toolchain ld.
>
> Previously clang had been used on target only, this update is
> required for host clang/clang++ to be used as a frontend for
> cross-compiling.
>
> Example build command:
>
> output/host/bin/clang++ -mcpu=cortex-a53 \
> --sysroot /<abs path>/output/staging/ \
> -B /<abs path>/output/host/opt/ext-toolchain/ \
> foobar.cc -o foobar
>
> Cc: Valentin Korenblit <valentinkorenblit@gmail.com>
> Reviewed-by: Romain Naour <romain.naour@gmail.com>
> Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
> ---
> Changes
> v1 -> v2
> [Romain
> - Added example build command in commit description as example
> for an eventual wrapper
> - Moved setting of ld path option to be with other path assignments
> ---
> package/clang/clang.mk | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
prev parent reply other threads:[~2018-10-21 14:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-21 12:21 [Buildroot] [PATCH v2] package/clang: default linker to the cross GNU Matt Weber
2018-10-21 14:29 ` Thomas Petazzoni [this message]
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=20181021162900.4c43e6f4@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/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