From: Steve Dickson <SteveD@redhat.com>
To: Mike Frysinger <vapier@gentoo.org>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH [nfs-utils]] locktes/rpcgen: tweak how we override compiler settings
Date: Mon, 25 Mar 2013 12:51:07 -0400 [thread overview]
Message-ID: <5150807B.2070402@RedHat.com> (raw)
In-Reply-To: <201303251219.06502.vapier@gentoo.org>
On 25/03/13 12:19, Mike Frysinger wrote:
> On Monday 25 March 2013 08:42:32 Steve Dickson wrote:
>> On 24/03/13 18:21, Mike Frysinger wrote:
>>> Newer autotools will use both CFLAGS and <target>_CFLAGS when compiling
>>> the <target>. Adding the build settings to the target-specific flags no
>>> longer works as a way to compile build-time tools.
>>>
>>> Instead, clobber the global flags. This triggers an automake warning,
>>> but the end result actually works (unlike the existing code).
>>
>> This patch is causing the following warnings:
>> ...
>> You didn't see these in your testing?
>
> in my summary:
>
> Instead, clobber the global flags. This triggers an automake warning,
> but the end result actually works (unlike the existing code).
Ok... I did miss that part of the summary...
>
>> Also what exactly broke that this patch fixes?
>
> also in my summary:
>
> Newer autotools will use both CFLAGS and <target>_CFLAGS when compiling
> the <target>.
>
> so when you cross-compile (e.g. --build=x86_64-linux-gnu --host=arm-linux-
> gnu), and you set CFLAGS to include settings which are valid only for the host
> (e.g. -mfloat-abi=hard -mfp=neon), those flags will also get passed to the build
> compiler when compiling these tools and they'll error out (because the build
> gcc doesn't recognize these flags).
And setting AM_CFLAGS does on take care of this problem...
I'm just trying to get rid of those warnings...
steved.
next prev parent reply other threads:[~2013-03-25 16:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-24 22:21 [PATCH [nfs-utils]] locktes/rpcgen: tweak how we override compiler settings Mike Frysinger
2013-03-25 12:42 ` Steve Dickson
2013-03-25 16:19 ` Mike Frysinger
2013-03-25 16:51 ` Steve Dickson [this message]
2013-03-25 18:33 ` Mike Frysinger
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=5150807B.2070402@RedHat.com \
--to=steved@redhat.com \
--cc=linux-nfs@vger.kernel.org \
--cc=vapier@gentoo.org \
/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;
as well as URLs for NNTP newsgroup(s).