Re: How to compile gcc with no optimization and "-gdwarf-2 -g3"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes. It worked. Thanks a lot.


Regards,
Timothy


On 6/17/05, Rupert Wood <me@xxxxxxxxx> wrote:
> Timothy wrote:
> 
> > And I tried
> >
> > # ./configure --with-dwarf2
> > # make CFLAGS='-gdwarf-2 -g3' LIBCFLAGS='-gdwarf-2 -g3'
> > BOOT_CFLAGS='-gdwarf-2 -g3'
> 
> I haven't done this for a while but I used to pass all the flags to
> configure too, i.e.
> 
>     # CFLAGS='-gdwarf-2 -g3' LIBCFLAGS='-gdwarf-2 -g3'
>       BOOT_CFLAGS='-gdwarf-2 -g3' ./configure --with-dwarf2
>     # make CFLAGS='-gdwarf-2 -g3' LIBCFLAGS='-gdwarf-2 -g3'
>       BOOT_CFLAGS='-gdwarf-2 -g3'
> 
> or just export them in advance (shell-specific)
> 
>     export CFLAGS='-gdwarf-2 -g3'
>     export LIBCFLAGS='-gdwarf-2 -g3'
>     export BOOT_CFLAGS='-gdwarf-2 -g3'
>     ./configure --with-dwarf2
>     make
> 
> Note that BOOT_CFLAGS probably won't make any difference since you're not
> using "make bootstrap". If you're not building with a similar version of GCC
> then you might want to bootstrap the compiler instead, but it sounds like
> you know what you're doing!
> 
> Rup.
> 
>


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux