diff options
author | Alex Richardson <arichardson@FreeBSD.org> | 2018-11-19 18:58:34 +0000 |
---|---|---|
committer | Alex Richardson <arichardson@FreeBSD.org> | 2018-11-19 18:58:34 +0000 |
commit | 3b7e9bfef4c707ec2a57a0435c1de0503f6d37be (patch) | |
tree | ae5366ae19138fd4300f7b8117ffca70bfac566c /tools/build/Makefile | |
parent | 1a305bda15c1153ab79dd8e9bff792be9a3c8150 (diff) |
Add capsicum_helpers.h to -legacy if needed
This fixes bootstrap of capsicumized strings on FreeBSD 11.
Reviewed By: oshogbo, bdrewery
Differential Revision: https://reviews.freebsd.org/D17971
Notes
Notes:
svn path=/head/; revision=340645
Diffstat (limited to 'tools/build/Makefile')
-rw-r--r-- | tools/build/Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/build/Makefile b/tools/build/Makefile index 40915c66a498..cce0850d92df 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -48,6 +48,16 @@ INCS+= strings.h SRCS+= explicit_bzero.c .endif +.if exists(/usr/include/capsicum_helpers.h) +_WITH_CAPH_ENTER!= grep -c caph_enter /usr/include/capsicum_helpers.h || true +.endif +.if !defined(_WITH_CAPH_ENTER) || ${_WITH_CAPH_ENTER} == 0 +.PATH: ${SRCTOP}/lib/libcapsicum +INCS+= capsicum_helpers.h +.PATH: ${SRCTOP}/lib/libcasper/libcasper +INCS+= libcasper.h +.endif + .if empty(SRCS) SRCS= dummy.c .endif |