summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2018-11-12 14:51:15 +1030
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-13 09:51:05 +0100
commitf4c27d53b15dbd8bae0b3095cf3cfff20d43ceb2 (patch)
treea038d052595e6d1ecbd01eb3b83e8b4bd318750f /Makefile
parent1637d5d2e299c33ef693bc2c85073bdd4b61adba (diff)
Makefile: Export clang toolchain variables
commit 3bd9805090af843b25f97ffe5049f20ade1d86d6 upstream. The powerpc makefile will use these in it's boot wrapper. Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2ac31178f5d5..2643454925aa 100644
--- a/Makefile
+++ b/Makefile
@@ -493,6 +493,7 @@ endif
CLANG_FLAGS += -no-integrated-as
KBUILD_CFLAGS += $(CLANG_FLAGS)
KBUILD_AFLAGS += $(CLANG_FLAGS)
+export CLANG_FLAGS
endif
RETPOLINE_CFLAGS_GCC := -mindirect-branch=thunk-extern -mindirect-branch-register