On 12/7/05, Damitha Kumarage <[EMAIL PROTECTED]> wrote:
>
> I thought that by default it is built with debug information. I think we
> need to add --disable-debug for a stripped build.

When I last looked, default was something like "-O2 -g".  There is a
"make install-strip" to remove debugging symbols on _install_, and
Debian is using this feature (not --diable-debug) to build stripped
binaries and libraries.

Using --{enable,disable}-debug is used to enable/disable code level
debugging.  For example, this can set a symbol _DEBUG_ in config.h, so
there can be fragments of code that will look like:

#ifdef _DEBUG_
    fprintf(stderr, "some debugging info\n");
#endif /* _DEBUG_ */

        Anuradha
--
http://anuradha-ratnaweera.blogspot.com
http://www.linux.lk/~anuradha/

Reply via email to