From 8f6f324746e6343b4fbd8a37b8a84c2d9c0f4d50 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 19 Sep 2011 16:57:37 +0200 Subject: [PATCH] build: use -m32 only when host_arch != target_arch Unbreaks the gyp build on x86_64 linux systems. --- common.gypi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.gypi b/common.gypi index f871a473..9a0be4dc 100644 --- a/common.gypi +++ b/common.gypi @@ -113,7 +113,7 @@ 'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ], 'ldflags': [ '-pthread', ], 'conditions': [ - [ 'target_arch=="ia32"', { + [ 'host_arch != target_arch and target_arch=="ia32"', { 'cflags': [ '-m32' ], 'ldflags': [ '-m32' ], }],