From 64db97e226ec993b7336fe8ede0a00c938afdc61 Mon Sep 17 00:00:00 2001 From: Armin Weatherwax Date: Sun, 13 Nov 2011 14:31:42 +0100 Subject: Linux: allow cross compiling the 32bit viewer on a x86_64 platform to do so: (have anything for crosscompiling installed), export WORD_SIZE='32' before configuring and/or building. Be aware: Mixing several platforms in one root directory probably wont work (didn't try though). Cross compiling the 64bit viewer on a i686 platform isn't tested, but probably will work using export WORD_SIZE='64' --- linden/scripts/install.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'linden/scripts') diff --git a/linden/scripts/install.py b/linden/scripts/install.py index f09fc48..c69644b 100755 --- a/linden/scripts/install.py +++ b/linden/scripts/install.py @@ -805,11 +805,14 @@ def _get_platform(): } this_platform = platform_map[sys.platform] if this_platform == 'linux': - if platform.architecture()[0] == '64bit': + word_size = os.environ.get('WORD_SIZE') + if platform.architecture()[0] == '64bit' or word_size == '64': # TODO -- someday when install.py accepts a platform of the form # os/arch/compiler/compiler_version then we can replace the # 'linux64' platform with 'linux/x86_64/gcc/4.1' - this_platform = 'linux64' + if not word_size == '32': + this_platform = 'linux64' + return this_platform def _getuser(): -- cgit v1.1