]> source.dussan.org Git - dcevm.git/commitdiff
Compile natives with -fPIC
authorIvan Dubrov <idubrov@guidewire.com>
Wed, 8 Jul 2015 06:06:30 +0000 (23:06 -0700)
committerIvan Dubrov <idubrov@guidewire.com>
Wed, 8 Jul 2015 18:27:09 +0000 (11:27 -0700)
build.gradle

index 3f73ccc0d8163d96de6f550aec6a6848f9caa932..3bbdb30c11457b0b065097b0171702624d10932a 100644 (file)
@@ -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')