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/sparc64/conf | |
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/sparc64/conf')
-rw-r--r-- | sys/arch/sparc64/conf/Makefile.sparc64 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/conf/Makefile.sparc64 b/sys/arch/sparc64/conf/Makefile.sparc64 index 8d5f71f6b23..5663470996a 100644 --- a/sys/arch/sparc64/conf/Makefile.sparc64 +++ b/sys/arch/sparc64/conf/Makefile.sparc64 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.sparc64,v 1.79 2016/11/15 09:08:38 natano Exp $ +# $OpenBSD: Makefile.sparc64,v 1.80 2016/11/29 09:08:34 mpi Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -35,6 +35,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} @@ -75,7 +76,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" STRIPFLAGS= -S SYSTEM_LD_TAIL+=; \ |