On Wed, Sep 5, 2012 at 3:16 PM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote: > On Wed, Sep 5, 2012 at 1:54 AM, Christer Solskogen > <christer.solskogen@xxxxxxxxx> 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,