From da06f0bf3aafb6b595600388af1d8ee9fe35cafb Mon Sep 17 00:00:00 2001 From: George Gates Date: Mon, 1 Jul 2019 12:01:06 -0400 Subject: [PATCH] Add build support for Oracle Solaris on SPARC sun4u and sun4v systems. --- setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ee9351e..2c847df 100644 --- a/setup.py +++ b/setup.py @@ -195,7 +195,9 @@ else: MACHINE2CPU = { "i686": "i386", "x86_64": "amd64", - "armv7l": "arm" + "armv7l": "arm", + "sun4u": "sparcv9", + "sun4v": "sparcv9" } if machine() in MACHINE2CPU.keys(): CPU = MACHINE2CPU[machine()] @@ -210,6 +212,9 @@ else: if PLATFORM == 'win32': INCL_DIR = join(JDK_HOME, 'include', 'win32') LIBRARIES = ['jvm'] + elif PLATFORM == 'sunos5': + INCL_DIR = join(jdk_home, 'include', 'solaris') + LIB_LOCATION = 'jre/lib/{}/server/libjvm.so'.format(CPU) else: INCL_DIR = join(JDK_HOME, 'include', 'linux') LIB_LOCATION = 'jre/lib/{}/server/libjvm.so'.format(CPU)