summaryrefslogtreecommitdiff
path: root/sys/arch/solbourne/conf
diff options
context:
space:
mode:
authorChristopher Pascoe <pascoe@cvs.openbsd.org>2006-06-01 21:46:29 +0000
committerChristopher Pascoe <pascoe@cvs.openbsd.org>2006-06-01 21:46:29 +0000
commitc9932c3bb9c0728bb312f4ae70f75cc65d3c44b3 (patch)
treeb4b929dbe60857614c1ca4aa61039dbf87676b2e /sys/arch/solbourne/conf
parent2603d3abb0ea24f6c2b7049b7d117f0b4232fd4c (diff)
Right at the end of a debug kernel build, the current Makefile copies bsd
(with symbols) to bsd.gdb, then strips bsd. This diff makes it rename the file with symbols, and then asks strip to output the stripped version as bsd. Avoids a potentially lengthy wait when we would otherwise copy the large (50MB+) kernel with debug symbols. ok reyk@ ketennis@
Diffstat (limited to 'sys/arch/solbourne/conf')
-rw-r--r--sys/arch/solbourne/conf/Makefile.solbourne7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/solbourne/conf/Makefile.solbourne b/sys/arch/solbourne/conf/Makefile.solbourne
index c1f11229bb4..2021fba0f5e 100644
--- a/sys/arch/solbourne/conf/Makefile.solbourne
+++ b/sys/arch/solbourne/conf/Makefile.solbourne
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.solbourne,v 1.1 2005/04/19 21:30:17 miod Exp $
+# $OpenBSD: Makefile.solbourne,v 1.2 2006/06/01 21:46:28 pascoe Exp $
# Makefile for OpenBSD
#
@@ -110,8 +110,9 @@ DEBUG?=
.if ${DEBUG} == "-g"
LINKFLAGS+= -X
SYSTEM_LD_TAIL+=; \
- echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
- echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@
+ echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \
+ echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
+ ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
.else
LINKFLAGS+= -S -x
.endif