Browse Source

build: disable use of thin archive

Thin archive needs binutils >= 2.19, disable it for supporting old ar
even if static libraries are linked within a local build.
v0.9.4-release
Shigeki Ohtsu 12 years ago
committed by Ben Noordhuis
parent
commit
11a5119e72
  1. 5
      common.gypi

5
common.gypi

@ -163,6 +163,11 @@
'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', '-pthread', ], 'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', '-pthread', ],
'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ], 'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ],
'ldflags': [ '-pthread', '-rdynamic' ], 'ldflags': [ '-pthread', '-rdynamic' ],
'target_conditions': [
['_type=="static_library"', {
'standalone_static_library': 1, # disable thin archive which needs binutils >= 2.19
}],
],
'conditions': [ 'conditions': [
[ 'target_arch=="ia32"', { [ 'target_arch=="ia32"', {
'cflags': [ '-m32' ], 'cflags': [ '-m32' ],

Loading…
Cancel
Save