aboutsummaryrefslogtreecommitdiff
path: root/tools/build/Makefile
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2019-08-01 19:26:16 +0000
committerMark Johnston <markj@FreeBSD.org>2019-08-01 19:26:16 +0000
commitfbe12f2085d153a8cf1adf2c51ec67ea63e2ca86 (patch)
tree202fd94cfc0ba9ac0f37dc3be9c3c79af8b9b4d9 /tools/build/Makefile
parent7959685201503f7660d2031d73df18ff64b383b3 (diff)
downloadsrc-fbe12f2085d153a8cf1adf2c51ec67ea63e2ca86.tar.gz
src-fbe12f2085d153a8cf1adf2c51ec67ea63e2ca86.zip
Include caph_rights_limit() in libegacy if need be.
Reported by: jenkins Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=350519
Diffstat (limited to 'tools/build/Makefile')
-rw-r--r--tools/build/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/build/Makefile b/tools/build/Makefile
index e1ff4f9c8f07..0fb25fc8a173 100644
--- a/tools/build/Makefile
+++ b/tools/build/Makefile
@@ -51,8 +51,9 @@ SRCS+= explicit_bzero.c
.if exists(/usr/include/capsicum_helpers.h)
_WITH_CAPH_ENTER!= grep -c caph_enter /usr/include/capsicum_helpers.h || true
+_WITH_CAPH_RIGHTS_LIMIT!= grep -c caph_rights_limit /usr/include/capsicum_helpers.h || true
.endif
-.if !defined(_WITH_CAPH_ENTER) || ${_WITH_CAPH_ENTER} == 0
+.if !defined(_WITH_CAPH_ENTER) || ${_WITH_CAPH_ENTER} == 0 || ${_WITH_CAPH_RIGHTS_LIMIT} == 0
.PATH: ${SRCTOP}/lib/libcapsicum
INCS+= capsicum_helpers.h
.PATH: ${SRCTOP}/lib/libcasper/libcasper