diff --git a/Makefile b/Makefile
index c300ac16c895e336b894824abf938af37da6d964..96b4ea5adf91f5593d67b75b08134897b1a4ee33 100644
--- a/Makefile
+++ b/Makefile
@@ -498,6 +498,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