summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2018-06-04 19:53:41 -0700
committerDavid S. Miller <davem@davemloft.net>2018-06-05 10:21:18 -0400
commit819dd92b9c0bc7bce9097d8c1f14240f471bb386 (patch)
tree6339c2d655bd680026f1bc56f2f8798a2088a577 /Makefile
parent47a6ca3f972f5baf06cd0c9f37d7b5268ade5363 (diff)
downloadop-kernel-dev-819dd92b9c0bc7bce9097d8c1f14240f471bb386.zip
op-kernel-dev-819dd92b9c0bc7bce9097d8c1f14240f471bb386.tar.gz
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 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 56ba070..62c1100 100644
--- a/Makefile
+++ b/Makefile
@@ -510,6 +510,11 @@ ifeq ($(call shell-cached,$(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $
KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO
endif
+ifeq ($(call shell-cached,$(CONFIG_SHELL) $(srctree)/scripts/cc-can-link.sh $(CC)), y)
+ CC_CAN_LINK := y
+ export CC_CAN_LINK
+endif
+
ifeq ($(config-targets),1)
# ===========================================================================
# *config targets only - make sure prerequisites are updated, and descend
OpenPOWER on IntegriCloud