build: gyp disable thin archives

Thin archives aren't available on all platforms, notably smartos
This commit is contained in:
Timothy J Fontaine 2013-04-08 16:30:27 -07:00 committed by Ben Noordhuis
parent 5676924c5b
commit e294975bb4

View File

@ -132,6 +132,11 @@
[ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
'cflags': [ '-Wall' ], 'cflags': [ '-Wall' ],
'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ], 'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ],
'target_conditions': [
['_type=="static_library"', {
'standalone_static_library': 1, # disable thin archive which needs binutils >= 2.19
}],
],
'conditions': [ 'conditions': [
[ 'host_arch != target_arch and target_arch=="ia32"', { [ 'host_arch != target_arch and target_arch=="ia32"', {
'cflags': [ '-m32' ], 'cflags': [ '-m32' ],