aboutsummaryrefslogtreecommitdiff
path: root/stand/userboot/userboot/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'stand/userboot/userboot/Makefile')
-rw-r--r--stand/userboot/userboot/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/stand/userboot/userboot/Makefile b/stand/userboot/userboot/Makefile
index 43011b9577c9..986bfdccfdd6 100644
--- a/stand/userboot/userboot/Makefile
+++ b/stand/userboot/userboot/Makefile
@@ -36,9 +36,13 @@ SRCS+= gfx_fb_stub.c
CFLAGS+= -Wall
CFLAGS+= -I${BOOTSRC}/userboot
+
+.if ${MK_LOADER_ZFS} != "no"
CFLAGS.main.c+= -I${BOOTSRC}/libsa/zfs
CFLAGS.main.c+= -I${SYSDIR}/contrib/openzfs/include
CFLAGS.main.c+= -I${SYSDIR}/contrib/openzfs/include/os/freebsd/zfs
+.endif
+
CWARNFLAGS.main.c += -Wno-implicit-function-declaration
CFLAGS.gfx_fb_stub.c += -I${SRCTOP}/contrib/pnglite -I${SRCTOP}/sys/teken