From: Behan Webster Date: Fri, 14 Feb 2014 23:19:17 +0000 (-0800) Subject: all: LLVMLinux: Change DWARF flag to support gcc and clang X-Git-Tag: v3.16-rc1~80^2~2 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=2288328ce9700865245677f35330f3a77dfc6eda;p=linux.git all: LLVMLinux: Change DWARF flag to support gcc and clang Both gcc (well, actually gnu as) and clang support the "-Wa,-gdwarf-2" option (though clang does not support "-Wa,--gdwarf-2"). Since these flags are equivalent in meaning, this patch uses the one which is better supported across compilers. Signed-off-by: Behan Webster --- diff --git a/Makefile b/Makefile index cdaa5b6a1c4d..cd64f66b2a7e 100644 --- a/Makefile +++ b/Makefile @@ -671,7 +671,7 @@ endif ifdef CONFIG_DEBUG_INFO KBUILD_CFLAGS += -g -KBUILD_AFLAGS += -Wa,--gdwarf-2 +KBUILD_AFLAGS += -Wa,-gdwarf-2 endif ifdef CONFIG_DEBUG_INFO_REDUCED