From 96b30f8e5daa4d6a57543621d19833e0959a0a13 Mon Sep 17 00:00:00 2001 From: dulong Date: Fri, 21 Aug 2015 17:12:04 +0800 Subject: [PATCH 1/2] build and load 32 bit program and library on hpux ia64 platform although the arch is IA64,but 32bit could run on the platform. --- bindings/java/hyperic_jni/src/org/hyperic/jni/ArchName.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bindings/java/hyperic_jni/src/org/hyperic/jni/ArchName.java b/bindings/java/hyperic_jni/src/org/hyperic/jni/ArchName.java index 6cc57add5..fa87f5428 100644 --- a/bindings/java/hyperic_jni/src/org/hyperic/jni/ArchName.java +++ b/bindings/java/hyperic_jni/src/org/hyperic/jni/ArchName.java @@ -62,7 +62,10 @@ else if (name.equals("SunOS")) { } else if (name.equals("HP-UX")) { if (arch.startsWith("IA64")) { - arch = "ia64"; + arch = "ia"; + if (is64()) { + arch += "64"; + } } else { arch = "pa"; From 9bf390919108c27f856b9e865677b0d20c54864a Mon Sep 17 00:00:00 2001 From: dulong Date: Sat, 22 Aug 2015 12:08:55 +0800 Subject: [PATCH 2/2] modify compiler name and linker name and add arguments modify compiler name and linker name,refer http://ant-contrib.sourceforge.net/cpptasks/antdocs/CompilerDef.html and http://ant-contrib.sourceforge.net/cpptasks/antdocs/LinkerDef.html. Add the -Ae argument for aCC compiling C language. Add the +DD64 option for aCC linking 64bit library, refer http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/Online_Help/options.htm --- bindings/java/hyperic_jni/jni-build.xml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bindings/java/hyperic_jni/jni-build.xml b/bindings/java/hyperic_jni/jni-build.xml index 38abedd99..62c38a688 100644 --- a/bindings/java/hyperic_jni/jni-build.xml +++ b/bindings/java/hyperic_jni/jni-build.xml @@ -270,8 +270,9 @@ relentless="false"> - + + @@ -281,7 +282,8 @@ - + + @@ -437,7 +439,7 @@ - + @@ -447,7 +449,7 @@ - +