objtool, retpolines: Integrate objtool with retpoline support more closely
[linux-2.6-block.git] / scripts / Makefile.build
index ce0fc4dd68c659c6706b0d478c513c74e4c546cb..4f2b25d43ec9b46923e52ae5d6f2bf789a6465b4 100644 (file)
@@ -267,8 +267,10 @@ else
 objtool_args += $(call cc-ifversion, -lt, 0405, --no-unreachable)
 endif
 ifdef CONFIG_RETPOLINE
+ifneq ($(RETPOLINE_CFLAGS),)
   objtool_args += --retpoline
 endif
+endif
 
 
 ifdef CONFIG_MODVERSIONS