From ce9d1e2acd9f46f20f40caa08d8fee699ee3a339 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Wed, 11 May 2016 17:55:09 +0000 Subject: [PATCH] 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 --- share/mk/bsd.lib.mk | 2 -- 1 file changed, 2 deletions(-) diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index caf8942174f5..971577c9a9ea 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -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}