cgcc: -dumpmachine should be fetched with '$ccom'
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@gmail.com>
diff --git a/cgcc b/cgcc
index 629124b..c795910 100755
--- a/cgcc
+++ b/cgcc
@@ -322,7 +322,7 @@
&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') {