These flags must set '$gendeps', just like a plain '-M' do, since they implies '-M'. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- cgcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgcc b/cgcc index 629124b94..6d3b10a20 100755 --- a/cgcc +++ b/cgcc @@ -49,7 +49,7 @@ while (@ARGV) { $m32 = 1 if /^-m32$/; $m64 = 1 if /^-m64$/; - $gendeps = 1 if /^-M$/; + $gendeps = 1 if /^-(M|MM|MD|MMD)$/; if (/^-target=(.*)$/) { $check .= &add_specs ($1); -- 2.20.1