summaryrefslogtreecommitdiff
path: root/sys/arch/i386/conf
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2016-11-29 09:08:35 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2016-11-29 09:08:35 +0000
commit1fd678dbf11f20d49fd1a02f58dfb28f4508e4a6 (patch)
tree978ea697c116a4eaca8b13b860ada07c7c67f9b9 /sys/arch/i386/conf
parent90e2188c73019eabdcd112bb8cd8ef50268d03ab (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/i386/conf')
-rw-r--r--sys/arch/i386/conf/Makefile.i3864
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/conf/Makefile.i386 b/sys/arch/i386/conf/Makefile.i386
index 89646c73e41..c01f98a3aef 100644
--- a/sys/arch/i386/conf/Makefile.i386
+++ b/sys/arch/i386/conf/Makefile.i386
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.i386,v 1.101 2016/11/15 09:08:37 natano Exp $
+# $OpenBSD: Makefile.i386,v 1.102 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}
@@ -81,7 +82,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+=; \