Date: 22 Feb 2002 01:00:52 +0100 From: Dag-Erling Smorgrav <des@ofug.org> To: Luigi Rizzo <rizzo@icir.org> Cc: Alfred Perlstein <bright@mu.org>, Bruce Evans <bde@zeta.org.au>, "M. Warner Losh" <imp@village.org>, current@FreeBSD.ORG, msmith@FreeBSD.ORG Subject: Re: Proposed patch for "/bin/sh: Argument list too long" when compiling LINT ... Message-ID: <xzpzo225qrv.fsf@flood.ping.uio.no> In-Reply-To: <20020221151439.D53952@iguana.icir.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
Luigi Rizzo <rizzo@icir.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpzo225qrv.fsf>
