Date: Mon, 17 Mar 2003 14:11:53 -0600 From: "Guy Helmer" <ghelmer@palisadesys.com> To: <audit@freebsd.org> Subject: /bin/sh flag NO_HISTORY Message-ID: <FPEBKMIFGFHCGLLKBLMMCENKCBAA.ghelmer@palisadesys.com>
next in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FPEBKMIFGFHCGLLKBLMMCENKCBAA.ghelmer>
