Re: Question about CFLAGS/CXXFLAGS when building GCC

2013-11-22 Thread Steve Ellcey
On Fri, 2013-11-22 at 13:48 -0800, H.J. Lu wrote: > On Fri, Nov 22, 2013 at 1:24 PM, Steve Ellcey wrote: > > > > I am building a cross GCC (targeting MIPS) on an x86-64 Linux system but I > > want to build the compiler as a 32 bit executable. I thought the right way > > to do this was to do: > >

Re: Question about CFLAGS/CXXFLAGS when building GCC

2013-11-22 Thread Eric Botcazou
> I am building a cross GCC (targeting MIPS) on an x86-64 Linux system but I > want to build the compiler as a 32 bit executable. I thought the right way > to do this was to do: > > export CFLAGS='-O2 -g -m32' > export CXXFLAGS-'-O2 -g -m32' > > before running configure and make. > > This is wo

Re: Question about CFLAGS/CXXFLAGS when building GCC

2013-11-22 Thread H.J. Lu
On Fri, Nov 22, 2013 at 1:24 PM, Steve Ellcey wrote: > > I am building a cross GCC (targeting MIPS) on an x86-64 Linux system but I > want to build the compiler as a 32 bit executable. I thought the right way > to do this was to do: > > export CFLAGS='-O2 -g -m32' > export CXXFLAGS-'-O2 -g -m32'