[Midnightbsd-cvs] src [8971] trunk/tools/build/Makefile: add pwcache and vis to libegacy as install will need them.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Sep 29 13:30:21 EDT 2016


Revision: 8971
          http://svnweb.midnightbsd.org/src/?rev=8971
Author:   laffer1
Date:     2016-09-29 13:30:21 -0400 (Thu, 29 Sep 2016)
Log Message:
-----------
add pwcache and vis to libegacy as install will need them.

Modified Paths:
--------------
    trunk/tools/build/Makefile

Modified: trunk/tools/build/Makefile
===================================================================
--- trunk/tools/build/Makefile	2016-09-29 17:28:59 UTC (rev 8970)
+++ trunk/tools/build/Makefile	2016-09-29 17:30:21 UTC (rev 8971)
@@ -10,6 +10,22 @@
 
 BOOTSTRAPPING?=	0
 
+_WITH_PWCACHEDB!= grep -c pwcache_groupdb /usr/include/pwd.h || true
+.if ${_WITH_PWCACHEDB} == 0
+.PATH: ${.CURDIR}/../../contrib/libc-pwcache
+CFLAGS+=	-I${.CURDIR}/../../contrib/libc-pwcache \
+		-I${.CURDIR}/../../lib/libc/include
+SRCS+=		pwcache.c
+.endif
+
+_WITH_STRSVIS!=	grep -c strsvis /usr/include/vis.h || true
+.if ${_WITH_STRSVIS} == 0
+.PATH: ${.CURDIR}/../../contrib/libc-vis
+SRCS+=		vis.c
+CFLAGS+=	-I${.CURDIR}/../../contrib/libc-vis \
+		-I${.CURDIR}/../../lib/libc/include
+.endif
+
 .if empty(SRCS)
 SRCS=		dummy.c
 .endif



More information about the Midnightbsd-cvs mailing list