From e294975bb4e01efac13a134b3282193e543c68c7 Mon Sep 17 00:00:00 2001 From: Timothy J Fontaine Date: Mon, 8 Apr 2013 16:30:27 -0700 Subject: [PATCH] build: gyp disable thin archives Thin archives aren't available on all platforms, notably smartos --- common.gypi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common.gypi b/common.gypi index 8c6c8875..a5f11649 100644 --- a/common.gypi +++ b/common.gypi @@ -132,6 +132,11 @@ [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 'cflags': [ '-Wall' ], 'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ], + 'target_conditions': [ + ['_type=="static_library"', { + 'standalone_static_library': 1, # disable thin archive which needs binutils >= 2.19 + }], + ], 'conditions': [ [ 'host_arch != target_arch and target_arch=="ia32"', { 'cflags': [ '-m32' ],