mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +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:
parent
07d72396f8
commit
7aa2e90176
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue