1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-10 09:42:26 +00:00

spl: Fix gcc6 build

-Wno-error= is only a clang flag, restrict its use to only clang.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2021-06-10 21:28:52 -06:00
parent 07d72396f8
commit 7aa2e90176

View File

@ -1,9 +1,11 @@
# $FreeBSD$
.include <bsd.init.mk>
.include <bsd.compiler.mk>
.PATH: ${SRCTOP}/sys/contrib/openzfs/lib/libspl
.PATH: ${SRCTOP}/sys/contrib/openzfs/include
LIB= spl
LIBADD=
PACKAGE= runtime
@ -41,6 +43,8 @@ CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/module/icp/include
CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
CFLAGS+= -DHAVE_ISSETUGID
CFLAGS+= -include ${SRCTOP}/sys/modules/zfs/zfs_config.h
.if ${COMPILER_TYPE} == "clang"
CFLAGS.atomic.c+= -Wno-error=atomic-alignment
.endif
.include <bsd.lib.mk>