build: gyp disable thin archives
Thin archives aren't available on all platforms, notably smartos
This commit is contained in:
parent
5676924c5b
commit
e294975bb4
@ -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' ],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user