diff --git a/backend.native/build.gradle b/backend.native/build.gradle index dd9f6a901a6..85fd514dfb9 100644 --- a/backend.native/build.gradle +++ b/backend.native/build.gradle @@ -41,6 +41,8 @@ kotlinNativeInterop { } hash { // TODO: copy-pasted from ':common:compileHash' + compilerOpts '-fPIC' + linkerOpts '-fPIC' linker 'clang++' linkOutputs ':common:compileHash'