btrfs-progs: build: omit unnecessary -MD flag
authorNaohiro Aota <naohiro.aota@wdc.com>
Thu, 14 Sep 2017 10:10:56 +0000 (19:10 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Sep 2017 13:17:45 +0000 (15:17 +0200)
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 <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Makefile

index 9b7ac2f..922baff 100644 (file)
--- 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