building world with debugging symbols

Alexander Best alexbestms at wwu.de
Fri Mar 5 05:28:45 UTC 2010


hi there,

because i'm doing a lot of debugging lately i thought it might be a good idea
to build world (in addition to the kernel) with debugging symbols. what i've
done is add

CFLAGS+= -O2 -fno-strict-aliasing -pipe -g

to /etc/src.conf, because having -g in CFLAGS in /etc/make.conf would also
build everything else (ports e.g.) with debugging symbols which i don't really
need/want.

make buildworld however fails due to the fact that building the bootloader
with -g exceeds the allowed maximum bootloader size by 545 bytes.

any suggestions on how to successfully build world with debugging symbols are
welcome.

cheers.
alex


More information about the freebsd-hackers mailing list