Commit
fed90353 didn't fully update the copy-builtin script
as needed to perform in-kernel builds. Add the missing
options and flags.
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matthew Thode <mthode@mthode.org>
Closes #7033
Closes #7037
ZFS_MODULE_CFLAGS += -I$(srctree)/include/spl
ZFS_MODULE_CFLAGS += -include $(srctree)/spl_config.h
ZFS_MODULE_CFLAGS += -include $(srctree)/zfs_config.h
ZFS_MODULE_CFLAGS += -I$(srctree)/include/spl
ZFS_MODULE_CFLAGS += -include $(srctree)/spl_config.h
ZFS_MODULE_CFLAGS += -include $(srctree)/zfs_config.h
- ZFS_MODULE_CLFAGS += -std=gnu99
- export ZFS_MODULE_CFLAGS
+ ZFS_MODULE_CFLAGS += -std=gnu99 -Wno-declaration-after-statement
+ ZFS_MODULE_CPPFLAGS = -DHAVE_SPL -D_KERNEL
+ ZFS_MODULE_CPPFLAGS += -UDEBUG -DNDEBUG
+ export ZFS_MODULE_CFLAGS ZFS_MODULE_CPPFLAGS