/bin/sh flag NO_HISTORY

"Guy Helmer" <[email protected]> Mon, 17 Mar 2003 14:11:53 -0600
Newsgroups gmane.os.freebsd.devel.audit
Message-ID <[email protected]>
Would it be OK to adjust /bin/sh's Makefile handle the
definition -DNO_HISTORY such that the  define NO_HISTORY is added to the
CFLAGS and -ll, -ledit, and -ltermcap are not included in the libraries?  It
saves a lot of space for a bootable PicoBSD diskette.

Something like this:

--- /usr/src/bin/sh/Makefile	Mon Mar 17 10:38:03 2003
+++ Makefile	Mon Mar 17 10:34:07 2003
@@ -14,8 +14,12 @@
 # utilities of the same name are handled with the associated manpage,
 # builtin.1 in share/man/man1/.

+.if !defined(NO_HISTORY)
 DPADD+= ${LIBL} ${LIBEDIT} ${LIBTERMCAP}
 LDADD+= -ll -ledit -ltermcap
+.else
+CFLAGS+=-DNO_HISTORY
+.endif

 LFLAGS= -8	# 8-bit lex scanner for arithmetic
 CFLAGS+=-DSHELL -I. -I${.CURDIR}


Guy Helmer, Ph.D., Sr. Software Engineer, Palisade Systems, Inc.
http://www.palisadesys.com/~ghelmer/


To Unsubscribe: send mail to [email protected]
with "unsubscribe freebsd-audit" in the body of the message