From 3efd322db238abcee7f8dddd6d5af7f69fc3fac4 Mon Sep 17 00:00:00 2001 From: Naohiro Aota Date: Thu, 14 Sep 2017 19:10:56 +0900 Subject: [PATCH] btrfs-progs: build: omit unnecessary -MD flag According to gcc(1), "-MD is equivalent to -M -MF file, except that -E is not implied." Since the rule in the Makefile is just generating dependency file and not building object file, it is no use to have "-MD" here. Also, it's overridden and conflicting with the following "-MM" flag. I guess we can drop it. Signed-off-by: Naohiro Aota Signed-off-by: David Sterba --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9b7ac2f..922baff 100644 --- a/Makefile +++ b/Makefile @@ -265,7 +265,7 @@ else endif %.o.d: %.c - $(Q)$(CC) -MD -MM -MG -MF $@ -MT $(@:.o.d=.o) -MT $(@:.o.d=.static.o) -MT $@ $(CFLAGS) $< + $(Q)$(CC) -MM -MG -MF $@ -MT $(@:.o.d=.o) -MT $(@:.o.d=.static.o) -MT $@ $(CFLAGS) $< # # Pick from per-file variables, btrfs_*_cflags -- 2.7.4