build: Updates to enable AIX support · nodejs/node@43397b2

@@ -64,6 +64,10 @@

6464

['target_arch=="x64"', {

6565

'msvs_configuration_platform': 'x64',

6666

}],

67+

['OS=="aix"', {

68+

'cflags': [ '-gxcoff' ],

69+

'ldflags': [ '-Wl,-bbigtoc' ],

70+

}],

6771

],

6872

'msvs_settings': {

6973

'VCCLCompilerTool': {

217221

'BUILDING_UV_SHARED=1',

218222

],

219223

}],

220-

[ 'OS in "linux freebsd openbsd solaris"', {

224+

[ 'OS in "linux freebsd openbsd solaris aix"', {

221225

'cflags': [ '-pthread', ],

222226

'ldflags': [ '-pthread' ],

223227

}],

224-

[ 'OS in "linux freebsd openbsd solaris android"', {

228+

[ 'OS in "linux freebsd openbsd solaris android aix"', {

225229

'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],

226230

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

227231

'ldflags': [ '-rdynamic' ],

@@ -243,11 +247,11 @@

243247

'cflags': [ '-m64' ],

244248

'ldflags': [ '-m64' ],

245249

}],

246-

[ 'target_arch=="ppc"', {

250+

[ 'target_arch=="ppc" and OS!="aix"', {

247251

'cflags': [ '-m32' ],

248252

'ldflags': [ '-m32' ],

249253

}],

250-

[ 'target_arch=="ppc64"', {

254+

[ 'target_arch=="ppc64" and OS!="aix"', {

251255

'cflags': [ '-m64', '-mminimal-toc' ],

252256

'ldflags': [ '-m64' ],

253257

}],

@@ -257,6 +261,18 @@

257261

'cflags!': [ '-pthread' ],

258262

'ldflags!': [ '-pthread' ],

259263

}],

264+

[ 'OS=="aix"', {

265+

'conditions': [

266+

[ 'target_arch=="ppc"', {

267+

'ldflags': [ '-Wl,-bmaxdata:0x60000000/dsa' ],

268+

}],

269+

[ 'target_arch=="ppc64"', {

270+

'cflags': [ '-maix64' ],

271+

'ldflags': [ '-maix64' ],

272+

}],

273+

],

274+

'ldflags!': [ '-rdynamic' ],

275+

}],

260276

],

261277

}],

262278

[ 'OS=="android"', {