Skip to content

Commit

Permalink
modify build xml file and ArchName.java hyperic#66
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhanyin committed Aug 28, 2024
1 parent 711e043 commit 9a3d262
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
11 changes: 6 additions & 5 deletions bindings/java/hyperic_jni/jni-build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,9 @@
relentless="false">

<!-- HPUX -->
<compiler name="hp" if="hpux">
<compiler name="aCC" if="hpux">
<compilerarg value="+Z"/>
<compilerarg value="-Ae"/>
<compilerarg value="+DD64" if="jni.arch64"/>

<defineset>
Expand All @@ -281,7 +282,8 @@
</defineset>
</compiler>

<linker name="hp" if="hpux">
<linker name="aCC" if="hpux">
<linkerarg value="+DD64" if="jni.arch64"/>
<libset if="jni.libset.libs"
dir="${jni.libset.dir}"
libs="${jni.libset.libs}"/>
Expand Down Expand Up @@ -437,7 +439,7 @@
</linker>

<!-- AIX -->
<compiler name="xlc_r" if="aix">
<compiler name="xlC" if="aix">
<compilerarg value="-q64" if="jni.arch64"/>
<defineset>
<define name="${jni.define.name}_AIX"/>
Expand All @@ -447,7 +449,7 @@
</defineset>
</compiler>

<linker name="xlc_r" if="aix">
<linker name="xlC" if="aix">
<linkerarg value="-b64" if="jni.arch64"/>
<libset if="jni.libset.libs"
dir="${jni.libset.dir}"
Expand Down Expand Up @@ -510,4 +512,3 @@
<target name="jni-clean">
<delete dir="${jni.objdir}"/>
</target>

5 changes: 4 additions & 1 deletion bindings/java/hyperic_jni/src/org/hyperic/jni/ArchName.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 9a3d262

Please sign in to comment.