git: b9ba9906b869 - stable/13 - Bootstrap crunchgen after removing -dc from linker invocation

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Sun, 17 Jul 2022 18:39:13 UTC
The branch stable/13 has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=b9ba9906b869e43533184e5239d0b62419dcc0fc

commit b9ba9906b869e43533184e5239d0b62419dcc0fc
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-07-14 21:13:41 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-07-17 18:36:31 +0000

    Bootstrap crunchgen after removing -dc from linker invocation
    
    In ec81497cc726 crunchgen was updated to remove -dc from the linker
    invocations in its generated makefile output, as this flag is no longer
    necessary, and is going to be an error with lld 15.
    
    Update the BOOTSTRAPPING conditions for copying the crunchgen binary
    from the host, or actually bootstrapping it when necessary. Since
    ec81497cc726 did not bump __FreeBSD_version, I have chosen the nearest
    values.
    
    Fixes:          ec81497cc726
    MFC after:      3 days
    
    (cherry picked from commit 93f5ab129a3d46f4f434a13306fc99f476456c00)
---
 Makefile.inc1 | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile.inc1 b/Makefile.inc1
index cf135f6d9439..ab9510094049 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2300,9 +2300,10 @@ _crunchide=	usr.sbin/crunch/crunchide
 _bootstrap_tools_links+=crunchide
 .endif
 
-# 1300115: Higher WARNS fixes
-.if ${BOOTSTRAPPING} < 1202502 || \
-	(${BOOTSTRAPPING} > 1300000 && ${BOOTSTRAPPING} < 1300131)
+# 1400052, 1300526, 1203507: Removed -dc from linker invocation
+.if ${BOOTSTRAPPING} < 1203507 || \
+	(${BOOTSTRAPPING} > 1300000 && ${BOOTSTRAPPING} < 1300526) || \
+	(${BOOTSTRAPPING} > 1400000 && ${BOOTSTRAPPING} < 1400052)
 _crunchgen=	usr.sbin/crunch/crunchgen
 .else
 _bootstrap_tools_links+=crunchgen