diff options
author | John Polstra <jdp@FreeBSD.org> | 1996-04-21 17:45:38 +0000 |
---|---|---|
committer | John Polstra <jdp@FreeBSD.org> | 1996-04-21 17:45:38 +0000 |
commit | 0bd0c3cc451251daf61f9d43f7ccecde6e93edb1 (patch) | |
tree | 3d0e5c85958f9725a761a6007ab8f0b9ea848654 /share/mk | |
parent | e2184122c5bf11c1132e5c70bef2e2e1cac6112e (diff) | |
download | src-0bd0c3cc451251daf61f9d43f7ccecde6e93edb1.tar.gz src-0bd0c3cc451251daf61f9d43f7ccecde6e93edb1.zip |
Add "-x" to the linker command for building shared libraries. This
eliminates many local symbols that could not be removed by the "ld -r -x"
steps on the individual object files. It makes shared libraries
substantially smaller -- almost 11%, in the case of libc.so.3.0.
Notes
Notes:
svn path=/head/; revision=15336
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/bsd.lib.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 67c88ac06902..17b2ec489433 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -1,5 +1,5 @@ # from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91 -# $Id: bsd.lib.mk,v 1.29 1996/01/21 17:26:25 jdp Exp $ +# $Id: bsd.lib.mk,v 1.30 1996/03/24 00:21:04 wosch Exp $ # .if exists(${.CURDIR}/../Makefile.inc) @@ -184,7 +184,7 @@ SOBJS+= ${OBJS:.o=.so} lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: ${SOBJS} @${ECHO} building shared ${LIB} library \(version ${SHLIB_MAJOR}.${SHLIB_MINOR}\) @rm -f lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} - @${LD} -Bshareable \ + @${LD} -Bshareable -x \ -o lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ `lorder ${SOBJS} | tsort` ${LDDESTDIR} ${LDADD} |