Add "-assert pure-text" to the link line. The warnings about RRS

relocations in text sections are now dependant on this flag.
This commit is contained in:
Doug Rabson 1997-05-23 17:50:35 +00:00
parent f329f664dd
commit f8a7448fcc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26073

View File

@ -1,5 +1,5 @@
# from: @(#)bsd.lib.mk 5.26 (Berkeley) 5/2/91
# $Id: bsd.lib.mk,v 1.55 1997/05/04 21:30:40 jdp Exp $
# $Id: bsd.lib.mk,v 1.56 1997/05/23 08:38:46 asami Exp $
#
.if exists(${.CURDIR}/../Makefile.inc)
@ -153,7 +153,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}
@${LDDESTDIRENV} ${CC} -shared -Wl,-x \
@${LDDESTDIRENV} ${CC} -shared -Wl,-x -Wl,-assert -Wl,pure-text \
-o lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
`lorder ${SOBJS} | tsort -q` ${LDDESTDIR} ${LDADD}