diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-11-29 09:08:35 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-11-29 09:08:35 +0000 |
commit | 1fd678dbf11f20d49fd1a02f58dfb28f4508e4a6 (patch) | |
tree | 978ea697c116a4eaca8b13b860ada07c7c67f9b9 /sys/arch/octeon | |
parent | 90e2188c73019eabdcd112bb8cd8ef50268d03ab (diff) |
Build kernel with DEBUG=-g by default.
This will allow us to extract type informations from DWARF2 sections. It
also makes developer life easier as debug information are now included in
every object.
Resulting kernels will be stripped using strip(1) instead of ld(1).
Kernel build time increases by approximately 10%. However it is still
possible to disable this by defining DEBUG="".
ok kettenis@, bluhm@, natano@, jasper@, reyk@, deraadt@
Diffstat (limited to 'sys/arch/octeon')
-rw-r--r-- | sys/arch/octeon/conf/Makefile.octeon | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/octeon/conf/Makefile.octeon b/sys/arch/octeon/conf/Makefile.octeon index 4ffdf12ca02..47bcb233204 100644 --- a/sys/arch/octeon/conf/Makefile.octeon +++ b/sys/arch/octeon/conf/Makefile.octeon @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.octeon,v 1.28 2016/11/15 09:08:38 natano Exp $ +# $OpenBSD: Makefile.octeon,v 1.29 2016/11/29 09:08:34 mpi Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -42,6 +42,7 @@ CMACHFLAGS+= -fno-builtin-printf -fno-builtin-snprintf \ CMACHFLAGS+= -fno-stack-protector .endif +DEBUG?= -g COPTS?= -O2 CFLAGS= ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE} AFLAGS= -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS} @@ -83,7 +84,6 @@ SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_HEAD} vers.o $${OBJS}'; \ ${LD} ${LINKFLAGS} -o $@ ${SYSTEM_HEAD} vers.o ${OBJS} SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@ -DEBUG?= .if ${DEBUG} == "-g" LINKFLAGS+= -S SYSTEM_LD_TAIL+=; \ |