From b829a4969fef4aa5771dae7685ecf16a206ca301 Mon Sep 17 00:00:00 2001 From: Gireesh Punathil Date: Mon, 4 Jul 2016 05:11:10 -0400 Subject: [PATCH] build: enable big toc for release builds in AIX AIX linker has a table of contents with default size 64K The recent code inclusions in V8 brings in lot of new symbols which necessitates to increase this default. Please note that the debug build already has this flag Fixes: https://github.com/nodejs/node/issues/7500 PR-URL: https://github.com/nodejs/node/pull/7508 Reviewed-By: Michael Dawson Reviewed-By: Ben Noordhuis --- common.gypi | 1 + node.gyp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common.gypi b/common.gypi index a892c2d6e3..646db0d7bb 100644 --- a/common.gypi +++ b/common.gypi @@ -293,6 +293,7 @@ 'ldflags': [ '-maix64' ], }], ], + 'ldflags': [ '-Wl,-bbigtoc' ], 'ldflags!': [ '-rdynamic' ], }], [ 'node_shared=="true"', { diff --git a/node.gyp b/node.gyp index b2a5a1e4a0..4309748fca 100644 --- a/node.gyp +++ b/node.gyp @@ -819,7 +819,7 @@ 'common.gypi', ], - 'ldflags': ['-Wl,-bbigtoc,-bE:<(PRODUCT_DIR)/node.exp'], + 'ldflags': ['-Wl,-bE:<(PRODUCT_DIR)/node.exp'], }, { 'target_name': 'node_exp',