Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/sh Include printf by default even for SMALL builds. It i...



details:   https://anonhg.NetBSD.org/src/rev/48e87ec32b73
branches:  trunk
changeset: 338109:48e87ec32b73
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun May 10 20:30:54 2015 +0000

description:
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.

diffstat:

 bin/sh/Makefile     |  5 ++++-
 bin/sh/builtins.def |  4 ++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r 711b2ce49bcc -r 48e87ec32b73 bin/sh/Makefile
--- a/bin/sh/Makefile   Sun May 10 18:55:22 2015 +0000
+++ b/bin/sh/Makefile   Sun May 10 20:30:54 2015 +0000
@@ -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 @@
 
 .ifdef SMALLPROG
 CPPFLAGS+=-DSMALL
+.endif
+.ifdef TINYPROG
+CPPFLAGS+=-DTINY
 .else
 SRCS+=printf.c
 .endif
diff -r 711b2ce49bcc -r 48e87ec32b73 bin/sh/builtins.def
--- a/bin/sh/builtins.def       Sun May 10 18:55:22 2015 +0000
+++ b/bin/sh/builtins.def       Sun May 10 20:30:54 2015 +0000
@@ -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 @@
 jobidcmd       jobid
 jobscmd                -u jobs
 localcmd       local
-#ifndef SMALL
+#ifndef TINY
 printfcmd      printf
 #endif
 pwdcmd         -u pwd



Home | Main Index | Thread Index | Old Index