backend.native: add -fPIC for interop with :common:hash
to fix build on Linux
This commit is contained in:
@@ -41,6 +41,8 @@ kotlinNativeInterop {
|
||||
}
|
||||
|
||||
hash { // TODO: copy-pasted from ':common:compileHash'
|
||||
compilerOpts '-fPIC'
|
||||
linkerOpts '-fPIC'
|
||||
linker 'clang++'
|
||||
linkOutputs ':common:compileHash'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user