Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jul 2018 20:03:19 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335908 - head/sys/conf
Message-ID:  <201807032003.w63K3JD3071764@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Tue Jul  3 20:03:19 2018
New Revision: 335908
URL: https://svnweb.freebsd.org/changeset/base/335908

Log:
  Fix r335906+r335907 to not pass multiple source files to genoffset_test.o target.
  
  This is working around a bug with the FAST_DEPEND logic with custom targets
  that use .ALLSRC.
  
  Reported by:	mmacy

Modified:
  head/sys/conf/kern.post.mk

Modified: head/sys/conf/kern.post.mk
==============================================================================
--- head/sys/conf/kern.post.mk	Tue Jul  3 19:24:52 2018	(r335907)
+++ head/sys/conf/kern.post.mk	Tue Jul  3 20:03:19 2018	(r335908)
@@ -195,8 +195,8 @@ genoffset.o: $S/kern/genoffset.c
 # is to exercise the CTASSERT that checks that the offsets in the offset.inc
 # _lite struct(s) match those in the original(s). 
 genoffset_test.o: $S/kern/genoffset.c offset.inc
-	${CC} -c ${CFLAGS:N-flto:N-fno-common} -DOFFSET_TEST ${.ALLSRC:M*.c} \
-	    -o ${.TARGET}
+	${CC} -c ${CFLAGS:N-flto:N-fno-common} -DOFFSET_TEST \
+	    $S/kern/genoffset.c -o ${.TARGET}
 
 assym.inc: $S/kern/genassym.sh genassym.o genoffset_test.o
 	NM='${NM}' NMFLAGS='${NMFLAGS}' sh $S/kern/genassym.sh genassym.o > ${.TARGET}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807032003.w63K3JD3071764>