diff options
Diffstat (limited to 'net/bpfilter/Makefile')
-rw-r--r-- | net/bpfilter/Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/net/bpfilter/Makefile b/net/bpfilter/Makefile index 36580301da70..cdac82b8c53a 100644 --- a/net/bpfilter/Makefile +++ b/net/bpfilter/Makefile @@ -3,16 +3,15 @@ # Makefile for the Linux BPFILTER layer. # -hostprogs := bpfilter_umh +userprogs := bpfilter_umh bpfilter_umh-objs := main.o -KBUILD_HOSTCFLAGS += -I $(srctree)/tools/include/ -I $(srctree)/tools/include/uapi -HOSTCC := $(CC) +userccflags += -I $(srctree)/tools/include/ -I $(srctree)/tools/include/uapi ifeq ($(CONFIG_BPFILTER_UMH), y) -# builtin bpfilter_umh should be compiled with -static +# builtin bpfilter_umh should be linked with -static # since rootfs isn't mounted at the time of __init # function is called and do_execv won't find elf interpreter -KBUILD_HOSTLDFLAGS += -static +userldflags += -static endif $(obj)/bpfilter_umh_blob.o: $(obj)/bpfilter_umh |