diff options
author | Alexei Starovoitov <ast@kernel.org> | 2018-06-05 05:53:41 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-05 17:21:18 +0300 |
commit | 819dd92b9c0bc7bce9097d8c1f14240f471bb386 (patch) | |
tree | 6339c2d655bd680026f1bc56f2f8798a2088a577 /net/Makefile | |
parent | 47a6ca3f972f5baf06cd0c9f37d7b5268ade5363 (diff) | |
download | linux-819dd92b9c0bc7bce9097d8c1f14240f471bb386.tar.xz |
bpfilter: switch to CC from HOSTCC
check that CC can build executables and use that compiler instead of HOSTCC
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/Makefile')
-rw-r--r-- | net/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index bdaf53925acd..13ec0d5415c7 100644 --- a/net/Makefile +++ b/net/Makefile @@ -20,7 +20,11 @@ obj-$(CONFIG_TLS) += tls/ obj-$(CONFIG_XFRM) += xfrm/ obj-$(CONFIG_UNIX) += unix/ obj-$(CONFIG_NET) += ipv6/ +ifneq ($(CC_CAN_LINK),y) +$(warning CC cannot link executables. Skipping bpfilter.) +else obj-$(CONFIG_BPFILTER) += bpfilter/ +endif obj-$(CONFIG_PACKET) += packet/ obj-$(CONFIG_NET_KEY) += key/ obj-$(CONFIG_BRIDGE) += bridge/ |