Link the host tools against tools/compat -lnbcompat since someone decided to

use strlcpy() and snprintf() in the host tools...

Should fix part of [toolchain/22504], and build problems on other
platforms that don't have strlcpy() or snprintf()...
This commit is contained in:
lukem 2003-10-18 07:58:35 +00:00
parent fd5c63296f
commit 51b9502fb1

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.67 2003/09/14 12:11:10 jmmv Exp $
# $NetBSD: Makefile,v 1.68 2003/10/18 07:58:35 lukem Exp $
# @(#)Makefile 8.4 (Berkeley) 5/5/95
.include <bsd.own.mk>
@ -72,11 +72,16 @@ syntax.c: mksyntax
[ -f syntax.h ]
touch syntax.h
.if ${USETOOLS} == "yes"
COMPATOBJDIR!= cd ${NETBSDSRCDIR}/tools/compat && ${PRINTOBJDIR}
NBCOMPATLIB= -L${COMPATOBJDIR} -lnbcompat
.endif
mkinit: mkinit.c
${HOST_LINK.c} -o mkinit ${.IMPSRC}
${HOST_LINK.c} -o mkinit ${.IMPSRC} ${NBCOMPATLIB}
mknodes: mknodes.c
${HOST_LINK.c} -o mknodes ${.IMPSRC}
${HOST_LINK.c} -o mknodes ${.IMPSRC} ${NBCOMPATLIB}
.if (${MACHINE_ARCH} == "powerpc") || \
(${MACHINE_CPU} == "arm")
@ -86,7 +91,7 @@ TARGET_CHARFLAG?= -DTARGET_CHAR="signed char"
.endif
mksyntax: mksyntax.c
${HOST_LINK.c} ${TARGET_CHARFLAG} -o mksyntax ${.IMPSRC}
${HOST_LINK.c} ${TARGET_CHARFLAG} -o mksyntax ${.IMPSRC} ${NBCOMPATLIB}
.include <bsd.prog.mk>