Include printf by default even for SMALL builds. It is used e.g. by

dhcpcd and as such required by most ramdisk images. Allow turning it off
again by TINYPROG.
This commit is contained in:
joerg 2015-05-10 20:30:54 +00:00
parent a05061a0c1
commit 66e60a49ac
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.100 2014/07/05 23:13:41 dholland Exp $
# $NetBSD: Makefile,v 1.101 2015/05/10 20:30:54 joerg Exp $
# @(#)Makefile 8.4 (Berkeley) 5/5/95
.include <bsd.own.mk>
@ -42,6 +42,9 @@ CPPFLAGS+=-DSHELL -I. -I${.CURDIR}
.ifdef SMALLPROG
CPPFLAGS+=-DSMALL
.endif
.ifdef TINYPROG
CPPFLAGS+=-DTINY
.else
SRCS+=printf.c
.endif

View File

@ -1,5 +1,5 @@
#!/bin/sh -
# $NetBSD: builtins.def,v 1.22 2012/12/31 14:10:15 dsl Exp $
# $NetBSD: builtins.def,v 1.23 2015/05/10 20:30:54 joerg Exp $
#
# Copyright (c) 1991, 1993
# The Regents of the University of California. All rights reserved.
@ -66,7 +66,7 @@ hashcmd hash
jobidcmd jobid
jobscmd -u jobs
localcmd local
#ifndef SMALL
#ifndef TINY
printfcmd printf
#endif
pwdcmd -u pwd