This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: CFLAGS_FOR_TARGET / CXX_FLAGS_FOR_TARGET broken?
- From: Christer Solskogen <christer dot solskogen at gmail dot com>
- To: Ian Lance Taylor <iant at google dot com>, gcc-help at gcc dot gnu dot org
- Date: Wed, 5 Sep 2012 15:22:53 +0200
- Subject: Re: CFLAGS_FOR_TARGET / CXX_FLAGS_FOR_TARGET broken?
- References: <CAMVU60a9mKZ_SGW4pCfHovResWr7n7s9p2oxEgA7xU+Ujugbgw@mail.gmail.com> <CAKOQZ8yqKCaiaK2vUH1O1A8bS7ttMZ64GmisCjH1NMqZ33dwKQ@mail.gmail.com>
On Wed, Sep 5, 2012 at 3:16 PM, Ian Lance Taylor <iant@google.com> wrote:
> On Wed, Sep 5, 2012 at 1:54 AM, Christer Solskogen
> <christer.solskogen@gmail.com> wrote:
>>
>> I'm trying to create a cross compiler with the master branch of glibc
>> and trunk of gcc. And it seems to me that CFLAGS_FOR_TARGET and/or
>> CXXFLAGS_FOR_TARGET is broken.
>> My CFLAGS/CXXFLAGS is set to "-O2 -pipe -march=corei7" while
>> CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET is "-O2 -pipe".
>
> Note that you must set these environment variables at configure time.
> You can also pass them explicitly on the configure line.
>
In my case I exported them. In gcc-4.7 that was enough. Has that changed, maybe?
--
chs,