diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2020-01-14 17:50:13 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2020-01-14 17:50:13 +0000 |
commit | 4b50c451720d8b427757a6da1dd2bb4c52cd9e35 (patch) | |
tree | 453af9d2ab946ec95eee0bab371676e2e1e039ea /share/mk/bsd.lib.mk | |
parent | 8683408cec0ffe6ff0083c5a26334633fb42f6d3 (diff) | |
download | src-test2-4b50c451720d8b427757a6da1dd2bb4c52cd9e35.tar.gz src-test2-4b50c451720d8b427757a6da1dd2bb4c52cd9e35.zip |
Notes
Diffstat (limited to 'share/mk/bsd.lib.mk')
-rw-r--r-- | share/mk/bsd.lib.mk | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 4464f44a1c10..62f762667f0c 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -291,10 +291,6 @@ CLEANFILES+= ${SOBJS} .if defined(SHLIB_NAME) _LIBS+= ${SHLIB_NAME} -.if ${CFLAGS:M-fexceptions} || defined(SHLIB_CXX) || defined(LIB_CXX) -ALLOW_MIPS_SHARED_TEXTREL= -.endif - SOLINKOPTS+= -shared -Wl,-x .if defined(LD_FATAL_WARNINGS) && ${LD_FATAL_WARNINGS} == "no" SOLINKOPTS+= -Wl,--no-fatal-warnings @@ -303,15 +299,6 @@ SOLINKOPTS+= -Wl,--fatal-warnings .endif SOLINKOPTS+= -Wl,--warn-shared-textrel -.if defined(ALLOW_MIPS_SHARED_TEXTREL) && ${MACHINE_CPUARCH:Mmips} -# Check if we should be defining ALLOW_SHARED_TEXTREL... basically, C++ -# or -fexceptions in CFLAGS on MIPS. This works around clang/lld attempting -# to generate text relocations in read-only .eh_frame. A future version of -# clang/lld should instead transform them into relative references at link -# time, and then we can stop doing this. -SOLINKOPTS+= -Wl,-z,notext -.endif - .if target(beforelinking) beforelinking: ${SOBJS} ${SHLIB_NAME_FULL}: beforelinking |