build: turn on thin static archives · nodejs/node@e03a7b2

2 files changed

lines changed

Original file line numberDiff line numberDiff line change

@@ -271,8 +271,9 @@

271271

'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++0x' ],

272272

'ldflags': [ '-rdynamic' ],

273273

'target_conditions': [

274-

['_type=="static_library"', {

275-

'standalone_static_library': 1, # disable thin archive which needs binutils >= 2.19

274+

# The 1990s toolchain on SmartOS can't handle thin archives.

275+

['_type=="static_library" and OS=="solaris"', {

276+

'standalone_static_library': 1,

276277

}],

277278

],

278279

'conditions': [

Original file line numberDiff line numberDiff line change

@@ -366,7 +366,9 @@

366366

'conditions': [

367367

['OS in "linux freebsd" and node_shared=="false"', {

368368

'ldflags': [

369-

'-Wl,--whole-archive <(PRODUCT_DIR)/<(OPENSSL_PRODUCT)',

369+

'-Wl,--whole-archive,'

370+

'<(PRODUCT_DIR)/obj.target/deps/openssl/'

371+

'<(OPENSSL_PRODUCT)',

370372

'-Wl,--no-whole-archive',

371373

],

372374

}],