Fix for systems that override SYSTEM_LD_TAIL

This commit is contained in:
christos 2022-01-06 17:05:32 +00:00
parent 67f139e20e
commit 12a78c4e40
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.kern.inc,v 1.292 2022/01/04 19:52:02 christos Exp $
# $NetBSD: Makefile.kern.inc,v 1.293 2022/01/06 17:05:32 christos Exp $
#
# This file contains common `MI' targets and definitions and it is included
# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@ -245,8 +245,8 @@ LINKFLAGS_DEBUG?= -X
KERNEL_CONFIG?= ${KERNEL_BUILD:T}
SYSTEM_LD_TAIL?=@${TOOL_SED} '/const char sccs/!d;s/.*@(.)//;s/" "//;s/\\.*//' vers.c && \
${SIZE} $@ && ${SYSTEM_CTFMERGE} && chmod 755 $@ && \
runit() { echo $$@; $$@; }
${SIZE} $@ && ${SYSTEM_CTFMERGE} && chmod 755 $@
SYSTEM_LD_TAIL+= && runit() { echo $$@; $$@; }
SYSTEM_LD_TAIL_DEBUG?=&& \
runit mv -f $@ $@.gdb && \