summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1996-04-21 17:45:38 +0000
committerjdp <jdp@FreeBSD.org>1996-04-21 17:45:38 +0000
commit34e576f18fb62f4e4b57c5011e448f285d83e4ee (patch)
tree3d0e5c85958f9725a761a6007ab8f0b9ea848654 /share
parent22a2f6a4fcf17c75d15282a1d1d61f0c8adc0bb2 (diff)
downloadFreeBSD-src-34e576f18fb62f4e4b57c5011e448f285d83e4ee.zip
FreeBSD-src-34e576f18fb62f4e4b57c5011e448f285d83e4ee.tar.gz
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.
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.lib.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk
index 67c88ac..17b2ec4 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}
OpenPOWER on IntegriCloud