Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Mar 2010 06:28:39 +0100 (CET)
From:      Alexander Best <alexbestms@wwu.de>
To:        <freebsd-hackers@FreeBSD.org>
Subject:   building world with debugging symbols
Message-ID:  <permail-20100305052839f0889e840000117a-a_best01@message-id.uni-muenster.de>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?permail-20100305052839f0889e840000117a-a_best01>