Roland Mainz wrote:
> AFAIK the "obvious gap" is a lack of a global switch which says "compile
> everything with -g". I've spend a couple of days now with finding a
> problem with |posix_spawn()| and this was a great sightseeing-tour
> through libshell, libast, libc (needed to BFU the system), libnsl
> (needed to BFU the system), libsecdb.so (skipped BFU and only use
> tar|tar to clobber the file) and finally libsocket (ahhgrrlll...
> xx@@@!!... ;-( ).

This is one of the features I really like about Gentoo.  I specify
compiler flags in one place, /etc/make.conf, and everything that is
built uses those flags unless a package overrides it because it is
exceptional, which is rare.  Hence, I build the entire Gentoo distro
with debugging enabled and it's as simple as adding something like this
to /etc/make.conf:

CFLAGS="-pipe -march=k8 -O2 -g"
CXXFLAGS="${CFLAGS}"
FEATURES="nostrip"

If *anything* crashes, I merely load gdb and debug it.  Most open source
is fairly readable and most fixes are easily made.  So I make the fix
and submit it to the caretakers of the project to which it belongs and I
never have to patch it again!

Regards,

Rob

_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to