build: use -m32 only when host_arch != target_arch

Unbreaks the gyp build on x86_64 linux systems.
This commit is contained in:
Ben Noordhuis 2011-09-19 16:57:37 +02:00
parent 2f18cf5ecf
commit 8f6f324746

View File

@ -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' ],
}],