Re: gcc build without debug (no -g)

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

 



kevin diggs <diggskevin38@xxxxxxxxx> writes:

> I can't seem to figure out how to disable debug in a gcc build without
> hacking on some of the build files. Is there a built in way to get a
> build with debug symbols disabled (for the installed size reduction)?
> This is for 3.4.6 and 4.3.5 on a Linux PowerPC.

At least for recent versions of gcc you can use
    make BOOT_CFLAGS="-O2"
The default value for BOOT_CFLAGS is "-g -O2".  See the installation
documentation.

I don't know the answers to your other questions, sorry.

Ian


[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