[PATCH 1/7] cgcc: -dumpmachine should be fetched with '$ccom'

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

 



The variable '$ccom' is used to hold the compiler command only
while '$cc' hold the compiler and it's options.

So, use '$ccom' to fetch '-dumpmachine' instead of '$cc'.

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 c42fee6de..456b97e37 100755
--- a/cgcc
+++ b/cgcc
@@ -322,7 +322,7 @@ sub add_specs {
 		&define_size_t ("long unsigned int") .
 		' -D__SIZEOF_POINTER__=' . ($m64 ? '8' : '4'));
     } elsif ($spec eq 'arm') {
-	chomp (my $gccmachine = `$cc -dumpmachine`);
+	chomp (my $gccmachine = `$ccom -dumpmachine`);
 	my $cppsymbols = ' -m32';
 
 	if ($gccmachine eq 'arm-linux-gnueabihf') {
-- 
2.20.0




[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