From owner-freebsd-audit Mon Mar 17 12:12: 8 2003 Delivered-To: freebsd-audit@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9898737B401 for ; Mon, 17 Mar 2003 12:12:07 -0800 (PST) Received: from magellan.palisadesys.com (magellan.palisadesys.com [192.188.162.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDCBB43F93 for ; Mon, 17 Mar 2003 12:12:06 -0800 (PST) (envelope-from ghelmer@palisadesys.com) Received: from mira (mira.palisadesys.com [192.188.162.116]) (authenticated bits=0) by magellan.palisadesys.com (8.12.8/8.12.8) with ESMTP id h2HKC59S000492 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Mon, 17 Mar 2003 14:12:06 -0600 (CST) (envelope-from ghelmer@palisadesys.com) From: "Guy Helmer" To: Subject: /bin/sh flag NO_HISTORY Date: Mon, 17 Mar 2003 14:11:53 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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