summaryrefslogtreecommitdiff
path: root/common.gypi
diff options
context:
space:
mode:
authorMichael Dawson <michael_dawson@ca.ibm.com>2016-03-28 17:03:06 -0400
committerMichael Dawson <michael_dawson@ca.ibm.com>2016-03-29 18:52:48 -0400
commita4c4a852a9a0ead7db424d72da056a5164da1179 (patch)
tree3a28f0b0047169838eef35f9bbea30392048308b /common.gypi
parent82fdaae901b06f25c869f2c1cfe71ae2b57299d0 (diff)
downloadnode-new-a4c4a852a9a0ead7db424d72da056a5164da1179.tar.gz
build: enable compilation for linuxOne
Changes to Node core in order to allow compilation for linuxOne. The ../archs/linux32-s390x/opensslconf.h and ../archs/linux64-s390x/opensslconf.h were automatically generated by running make linux-ppc linux-ppc64 in the deps/openssl/config directory as per our standard practice After these changes we still need a version of v8 which supports linuxOne but that will be coming soon in the 5.1 version of v8. Until then with these changes we'll be able to create a hybrid build which pulls in v8 from the http://github/andrewlow repo. PR-URL: https://github.com/nodejs/node/pull/5941 Reviewed-By: Johan Bergström <bugs@bergstroem.nu> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'common.gypi')
-rw-r--r--common.gypi8
1 files changed, 8 insertions, 0 deletions
diff --git a/common.gypi b/common.gypi
index 4a8e8716b9..811a7b3da3 100644
--- a/common.gypi
+++ b/common.gypi
@@ -264,6 +264,14 @@
'cflags': [ '-m64', '-mminimal-toc' ],
'ldflags': [ '-m64' ],
}],
+ [ 'target_arch=="s390"', {
+ 'cflags': [ '-m31' ],
+ 'ldflags': [ '-m31' ],
+ }],
+ [ 'target_arch=="s390x"', {
+ 'cflags': [ '-m64' ],
+ 'ldflags': [ '-m64' ],
+ }],
[ 'OS=="solaris"', {
'cflags': [ '-pthreads' ],
'ldflags': [ '-pthreads' ],