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 10:01:04 +0100
commit72d217d5df485027769cfc1a69e4d9bffaa30bfe (patch)
treee278ade872136f54a7f5f7fcb7dca260e19c9f70 /Makefile
parentff858d82207470c8612bb66d7129235f81567524 (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 0d53ecf5983f..6f7cca2abbd0 100644
--- a/Makefile
+++ b/Makefile
@@ -490,6 +490,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