Subject: Re: $STRIP or $STRIPPROG (Re: CVS commit: sharesrc)
To: Andrew Brown <atatat@atatdot.net>
From: Simon Burge <simonb@netbsd.org>
List: tech-toolchain
Date: 01/19/2000 09:44:41
Andrew Brown wrote:

> >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).

It appears that most (all?) ports already do this thanks to cgd around
July 1999...

Simon.