Skip site navigation (1)Skip section navigation (2)
Date:      22 Feb 2002 01:29:41 +0100
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Alfred Perlstein <bright@mu.org>
Cc:        Luigi Rizzo <rizzo@icir.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:  <xzpr8ne5pfu.fsf@flood.ping.uio.no>
In-Reply-To: <20020222002822.GJ12136@elvis.mu.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> <xzpzo225qrv.fsf@flood.ping.uio.no> <20020221161651.E54262@iguana.icir.org> <xzpvgcq5pwe.fsf@flood.ping.uio.no> <20020222002822.GJ12136@elvis.mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-=

Alfred Perlstein <bright@mu.org> writes:
> * Dag-Erling Smorgrav <des@ofug.org> [020221 16:19] wrote:
> > Ah, of course!  now why didn't I think of that? :)
> My first thought was:
>   "If make(1) doesn't have that functionality I will beat it into it
>    with a lead pipe..."

Heh :)  Here's a patch, anyway.

DES
-- 
Dag-Erling Smorgrav - des@ofug.org


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment; filename=kern.post.mk.diff

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	22 Feb 2002 00:22:39 -0000
@@ -93,10 +93,10 @@
 	    ${SYSTEM_SFILES} ${MFILES:T:S/.m$/.h/}
 	if [ -f .olddep ]; then mv .olddep .depend; fi
 	rm -f .newdep
-	env MKDEP_CPP="${CC} -E" CC="${CC}" \
-	    mkdep -a -f .newdep ${CFLAGS} ${CFILES} ${SYSTEM_CFILES} ${GEN_CFILES}
-	env MKDEP_CPP="${CC} -E" \
-	    mkdep -a -f .newdep ${ASM_CFLAGS} ${SFILES} ${SYSTEM_SFILES}
+	${MAKE} -VCFILES -VSYSTEM_CFILES -VGEN_CFILES | xargs\
+	    env MKDEP_CPP="${CC} -E" CC="${CC}" mkdep -a -f .newdep ${CFLAGS}
+	${MAKE} -VSFILES -VSYSTEM_FILES | xargs\
+	    env MKDEP_CPP="${CC} -E" mkdep -a -f .newdep ${ASM_CFLAGS}
 	rm -f .depend
 	mv .newdep .depend
 

--=-=-=--

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?xzpr8ne5pfu.fsf>