[PATCH 1/2] cgcc: gendeps for -MM, -MD & -MMD too

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux