CFLAGS_FOR_TARGET / CXX_FLAGS_FOR_TARGET broken?

Ian Lance Taylor iant@google.com
Wed Sep 5 13:41:00 GMT 2012


On Wed, Sep 5, 2012 at 6:22 AM, Christer Solskogen
<christer.solskogen@gmail.com> wrote:
> 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?

Not intentionally.

Look at CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET in the top-level
Makefile generated by running configure.

Ian



More information about the Gcc-help mailing list