From 8c4f5c3cef396e0ad4f0b59c04879685cec08e90 Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Thu, 13 Oct 2016 18:12:21 +0300 Subject: [PATCH] backend.native: add -fPIC for interop with :common:hash to fix build on Linux --- backend.native/build.gradle | 2 ++ 1 file changed, 2 insertions(+) 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'