cvs commit: src/share/mk bsd.lib.mk
Ruslan Ermilov
ru at FreeBSD.org
Mon Jun 30 12:03:58 PDT 2003
ru 2003/06/30 12:03:57 PDT
FreeBSD src repository
Modified files:
share/mk bsd.lib.mk
Log:
The use of ld(1) to strip compiler local and non-global
symbols from object files has bitrotted over the last
thirteen years, and it now does more harm than good.
An attempt to work around the problems caused by using
ld(1) for stripping was to pass LDFLAGS to the ld(1)
command, but this was not right either as ${LDFLAGS}
should, by design, be used with cc(1) and not ld(1).
One of the proposed solutions was to use the objcopy(1)
utility to do the strip work, and the other would be to
use strip(1), but Bruce Evans suggested not stripping
any symbols at all. This works by leaving the grunt
work to the final strip(1) command (when installing the
binary).
Submitted by: bde
Revision Changes Path
1.143 +0 -36 src/share/mk/bsd.lib.mk
More information about the cvs-src
mailing list