From owner-freebsd-current Thu Feb 21 16: 0:58 2002 Delivered-To: freebsd-current@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 9E8C737B404; Thu, 21 Feb 2002 16:00:54 -0800 (PST) Received: by flood.ping.uio.no (Postfix, from userid 2602) id DFB355343; Fri, 22 Feb 2002 01:00:52 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Luigi Rizzo Cc: Alfred Perlstein , Bruce Evans , "M. Warner Losh" , current@FreeBSD.ORG, msmith@FreeBSD.ORG Subject: Re: Proposed patch for "/bin/sh: Argument list too long" when compiling LINT ... References: <20020218.174959.96666779.imp@village.org> <20020219193515.Y1320-100000@gamplex.bde.org> <20020219004144.A25474@iguana.icir.org> <20020219085306.GL12136@elvis.mu.org> <20020221151439.D53952@iguana.icir.org> From: Dag-Erling Smorgrav Date: 22 Feb 2002 01:00:52 +0100 In-Reply-To: <20020221151439.D53952@iguana.icir.org> Message-ID: Lines: 35 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Luigi Rizzo writes: > Any better ideas ? You could just chicken out and do Index: kern.post.mk =================================================================== RCS file: /home/ncvs/src/sys/conf/kern.post.mk,v retrieving revision 1.7 diff -u -r1.7 kern.post.mk --- kern.post.mk 10 Jan 2002 03:52:00 -0000 1.7 +++ kern.post.mk 21 Feb 2002 23:55:02 -0000 @@ -93,10 +93,15 @@ ${SYSTEM_SFILES} ${MFILES:T:S/.m$/.h/} if [ -f .olddep ]; then mv .olddep .depend; fi rm -f .newdep +# Do this one file at a time to avoid overly long command lines +.for file in ${CFILES} ${SYSTEM_CFILES} ${GEN_CFILES} env MKDEP_CPP="${CC} -E" CC="${CC}" \ - mkdep -a -f .newdep ${CFLAGS} ${CFILES} ${SYSTEM_CFILES} ${GEN_CFILES} + mkdep -a -f .newdep ${CFLAGS} ${file} +.endfor +.for file in ${SFILES} ${SYSTEM_SFILES} env MKDEP_CPP="${CC} -E" \ - mkdep -a -f .newdep ${ASM_CFLAGS} ${SFILES} ${SYSTEM_SFILES} + mkdep -a -f .newdep ${ASM_CFLAGS} ${file} +.endfor rm -f .depend mv .newdep .depend Not particularly efficient, but shorter, simpler and clearer. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message