From 11a5119e72f1a93fa7f30c144afd6ec4f04a275a Mon Sep 17 00:00:00 2001 From: Shigeki Ohtsu Date: Wed, 21 Nov 2012 17:34:56 +0900 Subject: [PATCH] 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. --- common.gypi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common.gypi b/common.gypi index 4bca61a2561..e2d52c1d9ba 100644 --- a/common.gypi +++ b/common.gypi @@ -163,6 +163,11 @@ 'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', '-pthread', ], 'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ], 'ldflags': [ '-pthread', '-rdynamic' ], + 'target_conditions': [ + ['_type=="static_library"', { + 'standalone_static_library': 1, # disable thin archive which needs binutils >= 2.19 + }], + ], 'conditions': [ [ 'target_arch=="ia32"', { 'cflags': [ '-m32' ],