summaryrefslogtreecommitdiff
path: root/sys/arch/alpha
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/alpha
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/alpha')
-rw-r--r--sys/arch/alpha/conf/Makefile.alpha4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/alpha/conf/Makefile.alpha b/sys/arch/alpha/conf/Makefile.alpha
index 40b3a0c6a43..c12d317f149 100644
--- a/sys/arch/alpha/conf/Makefile.alpha
+++ b/sys/arch/alpha/conf/Makefile.alpha
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.alpha,v 1.94 2016/11/15 09:08:37 natano Exp $
+# $OpenBSD: Makefile.alpha,v 1.95 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+=; \