From c9932c3bb9c0728bb312f4ae70f75cc65d3c44b3 Mon Sep 17 00:00:00 2001 From: Christopher Pascoe Date: Thu, 1 Jun 2006 21:46:29 +0000 Subject: 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@ --- sys/arch/zaurus/conf/Makefile.zaurus | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/arch/zaurus/conf') diff --git a/sys/arch/zaurus/conf/Makefile.zaurus b/sys/arch/zaurus/conf/Makefile.zaurus index 2621fcdb1d6..0aef4c4fea2 100644 --- a/sys/arch/zaurus/conf/Makefile.zaurus +++ b/sys/arch/zaurus/conf/Makefile.zaurus @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.zaurus,v 1.5 2006/05/30 18:25:42 miod Exp $ +# $OpenBSD: Makefile.zaurus,v 1.6 2006/06/01 21:46:28 pascoe Exp $ # $NetBSD: Makefile.i386,v 1.67 1996/05/11 16:12:11 mycroft Exp $ # Makefile for OpenBSD @@ -121,8 +121,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+= -x .endif -- cgit v1.2.3