Fix copy-builtin to work with ASAN patch

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
This commit is contained in:
Matthew Thode 2018-01-12 17:39:36 +00:00 committed by Brian Behlendorf
parent e1a0850c35
commit c10cdcb55f
1 changed files with 4 additions and 2 deletions

View File

@ -63,8 +63,10 @@ EOF
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
obj-$(CONFIG_ZFS) :=
EOF