This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: CFLAGS_FOR_TARGET / CXX_FLAGS_FOR_TARGET broken?


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,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]