Deorbit ALLOW_SHARED_TEXTREL

We want to avoid .text relocations in shared objects. libcrypto was the
only consumer and it is now fixed (as of r299389). Remove the now-unused
support for turning off the linker warning.

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D6323
This commit is contained in:
Ed Maste 2016-05-11 17:55:09 +00:00
parent 68c47fcfad
commit ce9d1e2acd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299474

View File

@ -216,14 +216,12 @@ CLEANFILES+= ${SOBJS}
_LIBS+= ${SHLIB_NAME}
SOLINKOPTS+= -shared -Wl,-x
.if !defined(ALLOW_SHARED_TEXTREL)
.if defined(LD_FATAL_WARNINGS) && ${LD_FATAL_WARNINGS} == "no"
SOLINKOPTS+= -Wl,--no-fatal-warnings
.else
SOLINKOPTS+= -Wl,--fatal-warnings
.endif
SOLINKOPTS+= -Wl,--warn-shared-textrel
.endif
.if target(beforelinking)
beforelinking: ${SOBJS}