summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-02-16 18:12:35 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2019-02-25 23:00:59 +0100
commit95ac0b0352814393c1413a953f3d409d25a86059 (patch)
tree4f79555cce986da012a7cecac277c00da08c99fb
parentec4bac31cf9f847feed879a191bc1f8fbd9577ee (diff)
downloadsparse-95ac0b0352814393c1413a953f3d409d25a86059.tar.gz
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>
-rwxr-xr-xcgcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgcc b/cgcc
index 629124b9..c7959105 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') {