aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Dubrov <idubrov@guidewire.com>2015-07-07 23:06:30 -0700
committerIvan Dubrov <idubrov@guidewire.com>2015-07-08 11:27:09 -0700
commit8d4957bb6185c425d7dfa87caa5d133824788023 (patch)
tree9bb0f2efa8cab40eabc681d31dbd9a15128b6afc
parent205101f9ee0cd3b31c9083e625f587cb167fe0ba (diff)
downloaddcevm-8d4957bb6185c425d7dfa87caa5d133824788023.tar.gz
dcevm-8d4957bb6185c425d7dfa87caa5d133824788023.zip
Compile natives with -fPIC
-rw-r--r--build.gradle1
1 files changed, 1 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 3f73ccc0..3bbdb30c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -171,6 +171,7 @@ project('native') {
args 'natives.c'
if (os == Os.UNIX) {
args "-I${jre}/../include/linux"
+ args '-fPIC'
args '-o'
args 'build/libnatives.so'
args(arch == Arch.X86 ? '-m32' : '-m64')