From 4f77a236157bed52dc1921e77bd1a56d807016b8 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Thu, 19 Apr 2018 16:34:43 -0400 Subject: [PATCH] build: add support for 64-bit AIX Pass -Dtarget_arch=ppc64 to gyp_uv.py to activate. Refs: https://github.com/nodejs/node/pull/20129 Refs: https://github.com/libuv/libuv/pull/1795 PR-URL: https://github.com/libuv/libuv/pull/1807 Reviewed-By: Ben Noordhuis Reviewed-By: Michael Dawson Reviewed-By: Santiago Gimeno Reviewed-By: Colin Ihrig --- common.gypi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common.gypi b/common.gypi index 572a1633..2297bdf0 100644 --- a/common.gypi +++ b/common.gypi @@ -134,7 +134,7 @@ }] ] }], - ['OS in "freebsd dragonflybsd linux openbsd solaris android"', { + ['OS in "freebsd dragonflybsd linux openbsd solaris android aix"', { 'cflags': [ '-Wall' ], 'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ], 'target_conditions': [ @@ -162,6 +162,10 @@ 'cflags': [ '-pthread' ], 'ldflags': [ '-pthread' ], }], + [ 'OS=="aix" and target_arch=="ppc64"', { + 'cflags': [ '-maix64' ], + 'ldflags': [ '-maix64' ], + }], ], }], ['OS=="mac"', {