diff options
Diffstat (limited to '')
-rwxr-xr-x | linden/indra/develop.py | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/linden/indra/develop.py b/linden/indra/develop.py index 8b23b1d..2f07e9e 100755 --- a/linden/indra/develop.py +++ b/linden/indra/develop.py | |||
@@ -223,14 +223,26 @@ class UnixSetup(PlatformSetup): | |||
223 | 223 | ||
224 | def arch(self): | 224 | def arch(self): |
225 | cpu = os.uname()[-1] | 225 | cpu = os.uname()[-1] |
226 | word_size = os.environ.get('WORD_SIZE') | ||
226 | if cpu.endswith('386'): | 227 | if cpu.endswith('386'): |
227 | cpu = 'i386' | 228 | cpu = 'i386' |
229 | if word_size == '64': | ||
230 | cpu = 'x86_64' | ||
228 | elif cpu.endswith('86'): | 231 | elif cpu.endswith('86'): |
229 | cpu = 'i686' | 232 | if word_size == '64': |
233 | cpu = 'x86_64' | ||
234 | else: | ||
235 | cpu = 'i686' | ||
230 | elif cpu in ('x86_64'): | 236 | elif cpu in ('x86_64'): |
231 | cpu = 'x86_64' | 237 | if word_size == '32': |
232 | elif cpu in ('athlon',): | 238 | cpu = 'i686' |
233 | cpu = 'i686' | 239 | else: |
240 | cpu = 'x86_64' | ||
241 | elif cpu in ('athlon',): | ||
242 | if word_size == '64': | ||
243 | cpu = 'x86_64' | ||
244 | else: | ||
245 | cpu = 'i686' | ||
234 | elif cpu == 'Power Macintosh': | 246 | elif cpu == 'Power Macintosh': |
235 | cpu = 'ppc' | 247 | cpu = 'ppc' |
236 | return cpu | 248 | return cpu |