From 8d4957bb6185c425d7dfa87caa5d133824788023 Mon Sep 17 00:00:00 2001 From: Ivan Dubrov Date: Tue, 7 Jul 2015 23:06:30 -0700 Subject: Compile natives with -fPIC --- build.gradle | 1 + 1 file changed, 1 insertion(+) 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') -- cgit v1.2.3