git: 381073282961 - main - lib9p: fix building on systems without capser
Mariusz Zaborski
oshogbo at FreeBSD.org
Mon Jan 4 19:57:41 UTC 2021
The branch main has been updated by oshogbo:
URL: https://cgit.FreeBSD.org/src/commit/?id=381073282961af9d11d6225fcf9dfdf650915acf
commit 381073282961af9d11d6225fcf9dfdf650915acf
Author: Mariusz Zaborski <oshogbo at FreeBSD.org>
AuthorDate: 2021-01-04 19:48:48 +0000
Commit: Mariusz Zaborski <oshogbo at FreeBSD.org>
CommitDate: 2021-01-04 19:48:48 +0000
lib9p: fix building on systems without capser
PR: 252353
---
lib/lib9p/Makefile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/lib/lib9p/Makefile b/lib/lib9p/Makefile
index c909bdb1f781..c810ccd79e64 100644
--- a/lib/lib9p/Makefile
+++ b/lib/lib9p/Makefile
@@ -1,10 +1,15 @@
# $FreeBSD$
+.include <src.opts.mk>
+
.PATH: ${.CURDIR}/../../contrib/lib9p
-CFLAGS+= -DWITH_CASPER
CFLAGS+= -I${.CURDIR}
CFLAGS+= -I${.CURDIR}/../../contrib/lib9p
+.if ${MK_CASPER} != "no"
+CFLAGS+= -DWITH_CASPER
+.endif
+
LIB= 9p
PACKAGE= lib${LIB}
SHLIB_MAJOR= 1
More information about the dev-commits-src-main
mailing list