Skip to content

Commit

Permalink
add compile option for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
jperedadnr committed Apr 2, 2024
1 parent 245052a commit 2127c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/native-build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ ext.nativeBuildLib = { buildDir, projectDir, name, os ->
File nativeSourcesDir = file("$projectDir/src/main/native/$os/c/")
osSources = [nativeSourcesDir.listFiles().findAll {it.name.endsWith(".c")}].flatten()

def compilerArgs = ["-target", platform, "-Werror", "-c", includeFlags, osIncludeFlags, osSources].flatten()
def compilerArgs = ["-target", platform, "-Werror", "-c", "-fPIC", includeFlags, osIncludeFlags, osSources].flatten()

exec {
executable compiler
Expand Down

0 comments on commit 2127c8b

Please sign in to comment.