Merge branch 'sigar-1.6'
Conflicts: bindings/java/hyperic_jni/src/org/hyperic/jni/ArchNameTask.java
This commit is contained in:
commit
4c165819a3
|
@ -328,7 +328,7 @@ USA.
|
||||||
<compilerarg value="-g" if="jni.debug"/>
|
<compilerarg value="-g" if="jni.debug"/>
|
||||||
<compilerarg value="-Wall"/>
|
<compilerarg value="-Wall"/>
|
||||||
<compilerarg value="-Werror" if="jni.werror"/>
|
<compilerarg value="-Werror" if="jni.werror"/>
|
||||||
<compilerarg value="-m64" if="jni.usem64"/>
|
<compilerarg value="${jni.gccm}" if="jni.gccm"/>
|
||||||
<defineset>
|
<defineset>
|
||||||
<define name="${jni.define.name}_LINUX"/>
|
<define name="${jni.define.name}_LINUX"/>
|
||||||
<define name="_REENTRANT"/>
|
<define name="_REENTRANT"/>
|
||||||
|
@ -343,7 +343,7 @@ USA.
|
||||||
<libset if="jni.dmalloc"
|
<libset if="jni.dmalloc"
|
||||||
dir="${jni.dmalloc}/lib"
|
dir="${jni.dmalloc}/lib"
|
||||||
libs="dmallocth"/>
|
libs="dmallocth"/>
|
||||||
<linkerarg value="-m64" if="jni.usem64"/>
|
<linkerarg value="${jni.gccm}" if="jni.gccm"/>
|
||||||
</linker>
|
</linker>
|
||||||
|
|
||||||
<!-- Darwin -->
|
<!-- Darwin -->
|
||||||
|
|
|
@ -73,10 +73,16 @@ public class ArchNameTask extends Task {
|
||||||
getProject().setProperty("jni.arch64", "true");
|
getProject().setProperty("jni.arch64", "true");
|
||||||
if (ArchLoader.IS_LINUX) {
|
if (ArchLoader.IS_LINUX) {
|
||||||
if (!osArch.equals("ia64")) {
|
if (!osArch.equals("ia64")) {
|
||||||
getProject().setProperty("jni.usem64", "true");
|
getProject().setProperty("jni.gccm", "-m64");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
if (ArchLoader.IS_LINUX && osArch.equals("s390")) {
|
||||||
|
//gcc defaults to m64 on s390x platforms
|
||||||
|
getProject().setProperty("jni.gccm", "-m31");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (ArchLoader.IS_DARWIN) {
|
if (ArchLoader.IS_DARWIN) {
|
||||||
//default to most recent SDK
|
//default to most recent SDK
|
||||||
|
|
Loading…
Reference in New Issue