svn commit: r336335 - in head: lib/libnv tools/build

Alex Richardson arichardson at FreeBSD.org
Mon Jul 16 10:57:28 UTC 2018


Author: arichardson
Date: Mon Jul 16 10:57:26 2018
New Revision: 336335
URL: https://svnweb.freebsd.org/changeset/base/336335

Log:
  No longer install sys/nv.h and sys/cnv.h in lib/libnv/Makefile
  
  Use tools/build/Makefile to install the headers into ${WORLDTMP}/legacy
  instead. Compared to r336026 this has the minor advantage that it avoids
  unncessary header installation when building the non-bootstrap libnv.
  
  Reviewed By:	bdrewery, kevans
  Approved By:	brooks (mentor)
  Differential Revision: https://reviews.freebsd.org/D16187

Modified:
  head/lib/libnv/Makefile
  head/tools/build/Makefile

Modified: head/lib/libnv/Makefile
==============================================================================
--- head/lib/libnv/Makefile	Mon Jul 16 10:32:11 2018	(r336334)
+++ head/lib/libnv/Makefile	Mon Jul 16 10:57:26 2018	(r336335)
@@ -17,9 +17,6 @@ SRCS+=	msgio.c
 SRCS+=	nvlist.c
 SRCS+=	nvpair.c
 
-INCSDIR=	${INCLUDEDIR}/sys
-INCS=	${SRCTOP}/sys/sys/cnv.h ${SRCTOP}/sys/sys/nv.h
-
 HAS_TESTS=
 SUBDIR.${MK_TESTS}+= tests
 

Modified: head/tools/build/Makefile
==============================================================================
--- head/tools/build/Makefile	Mon Jul 16 10:32:11 2018	(r336334)
+++ head/tools/build/Makefile	Mon Jul 16 10:57:26 2018	(r336335)
@@ -49,4 +49,7 @@ SRCS=		dummy.c
 SUBDIR=		cross-build
 .endif
 
+# Needed to build config (since it uses libnv)
+SYSINCS+=	${SRCTOP}/sys/sys/nv.h ${SRCTOP}/sys/sys/cnv.h
+
 .include <bsd.lib.mk>


More information about the svn-src-head mailing list