From: Chong Lu <Chong.Lu@windriver.com>
To: "Burton, Ross" <ross.burton@intel.com>
Cc: OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] nfs-utils: use cross toolchain to compile testlk
Date: Fri, 30 May 2014 10:11:12 +0800 [thread overview]
Message-ID: <5387E8C0.3090300@windriver.com> (raw)
In-Reply-To: <CAJTo0LZWqFB89AhgZtGOLmHGaZ-N=SVxLORsq-gK_Qhnfpib5w@mail.gmail.com>
On 05/29/2014 06:15 PM, Burton, Ross wrote:
> On 29 May 2014 10:10, Chong Lu <Chong.Lu@windriver.com> wrote:
>> testlk is built with host gcc at do_compile stage, which leads to unrecognized
>> some flags for special architecture. Using cross toolchain instead.
> The makefile explicitly uses the host compiler, so presumably there's
> a good reason for this. If the problem is that the host compiler is
> being passed target CFLAGS, then you should set AM_CFLAGS to
> CFLAGS_FOR_BUILD and so on.
>
> Ross
>
>
Hi Ross,
I remove "CC=$(CC_FOR_BUILD)" in order to inherit compiler.
Do you mean that I should reset CFLAGS in makefile rather than inherit
compiler?
If I reset CFLAGS, this makefile will use host compiler.
Moreover, testlk can't execute in target.
Best Regards
Chong
next prev parent reply other threads:[~2014-05-30 2:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-29 9:10 [PATCH 0/1] nfs-utils: use cross toolchain to compile testlk Chong Lu
2014-05-29 9:10 ` [PATCH 1/1] " Chong Lu
2014-05-29 10:15 ` Burton, Ross
2014-05-30 2:11 ` Chong Lu [this message]
2014-05-30 12:22 ` Burton, Ross
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=5387E8C0.3090300@windriver.com \
--to=chong.lu@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=ross.burton@intel.com \
/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