From: Ivan Dubrov Date: Sat, 26 Apr 2014 04:38:05 +0000 (-0700) Subject: Fixing native library compilation on x86 vs x64 X-Git-Tag: light-jdk8u5+36~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b558a45203fb1cd3778086b24858dde84572c7ac;p=dcevm.git Fixing native library compilation on x86 vs x64 --- diff --git a/build.gradle b/build.gradle index 1b7cb0b6..85d497dd 100644 --- a/build.gradle +++ b/build.gradle @@ -143,6 +143,7 @@ project('native') { args "-I${jre}/../include/linux" args '-o' args 'build/libnatives.so' + args (arch == Arch.X86 ? '-m32' : '-m64') } else if (os == Os.MAC) { args "-I${jre}/../include/darwin" args '-o'