aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rwxr-xr-xcgcc4
1 files changed, 3 insertions, 1 deletions
diff --git a/cgcc b/cgcc
index 389cedb2..a941c578 100755
--- a/cgcc
+++ b/cgcc
@@ -356,7 +356,9 @@ sub add_specs {
return &add_specs ('ppc64+le');
} elsif ($gccmachine =~ '^s390x-') {
return &add_specs ('s390x');
- } elsif ($gccmachine eq 'x86_64-linux-gnu') {
+ } elsif ($gccmachine eq 'x86_64-linux-gnux32') {
+ return &add_specs ('x86_64') . ' -mx32';
+ } elsif ($gccmachine =~ '^x86_64-') {
return &add_specs ('x86_64');
}