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