From c615275cccc56514f2eaf42112f9e604507c0feb Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Thu, 20 Oct 2016 21:29:59 +0000 Subject: [PATCH] Don't build libssp as a prereq lib if WITHOUT_SSP is set Reviewed by: brooks Differential Revision: https://reviews.freebsd.org/D8301 --- Makefile.inc1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index 5723fd1dbd34..a89a893a9eec 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1983,7 +1983,10 @@ libraries: .MAKE .PHONY # # static libgcc.a prerequisite for shared libc # -_prereq_libs= gnu/lib/libssp/libssp_nonshared gnu/lib/libgcc lib/libcompiler_rt +_prereq_libs= gnu/lib/libgcc lib/libcompiler_rt +.if ${MK_SSP} != "no" +_prereq_libs+= gnu/lib/libssp/libssp_nonshared +.endif # These dependencies are not automatically generated: #