aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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')