From 0f61170882cb39a3fa4b76bcfc9c8acd2404a2da Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Wed, 5 Feb 2020 20:08:01 +0000 Subject: libssp_nonshared: use only on i386 and ppc libssp_nonshared.a defines one symbol, __stack_chk_fail_local. This is used only on i386 and powerpc; other archs emit calls directly to __stack_chk_fail. Simplify linking on other archs by omitting it. PR: 242941 [exp-run] --- share/mk/src.libnames.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'share') diff --git a/share/mk/src.libnames.mk b/share/mk/src.libnames.mk index e4ff7013d7de..927958711d85 100644 --- a/share/mk/src.libnames.mk +++ b/share/mk/src.libnames.mk @@ -344,7 +344,8 @@ _DP_xo= util # The libc dependencies are not strictly needed but are defined to make the # assert happy. _DP_c= compiler_rt -.if ${MK_SSP} != "no" +.if ${MK_SSP} != "no" && \ + (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH:Mpower*} != "") _DP_c+= ssp_nonshared .endif _DP_stats= sbuf pthread -- cgit v1.2.3