Subject: Re: $STRIP or $STRIPPROG (Re: CVS commit: sharesrc)
To: None <tech-toolchain@netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: tech-toolchain
Date: 01/18/2000 17:18:28
>The kernel Makefiles set "STRIPFLAGS=-d", but -d is only supported
>by the old Berkeley strip and our in-tree GNU strip. Now all ports
>use GNU binutils strip so I think it is OK to change STRIPFLAGS
>in the kernel Makefiles to -g for cross-compiling.

really?  the new binutils?  where strip has the -o option?  that
sounds great!  so can we please replace the part of Makefile.arch (in
/sys/arch/{arch}/conf/Makefile.{arch}) that says:

SYSTEM_LD_TAIL+=; \
		echo cp $@ $@.gdb; rm -f $@.gdb; cp $@ $@.gdb; \
		echo ${STRIP} ${STRIPFLAGS} $@; ${STRIP} ${STRIPFLAGS} $@

with

SYSTEM_LD_TAIL+=; \
		echo mv $@ $@.gdb; rm -f $@.gdb; mv $@ $@.gdb; \
		echo ${STRIP} ${STRIPFLAGS} $@; \
			${STRIP} ${STRIPFLAGS} -o $@ $@.gdb

because that's much faster on slow machines (because you don't have to
waste time copying large files).

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
andrew@crossbar.com       * "information is power -- share the wealth."