From 98a0e86646338dedcdf4e7191c05225376c484a7 Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Tue, 11 Oct 2016 10:57:29 +0300 Subject: [PATCH] Interop/Runtime: fix building on Linux use correct libffi*.a variant --- Interop/Runtime/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Interop/Runtime/build.gradle b/Interop/Runtime/build.gradle index 2cff59ff60a..06fd98a191d 100644 --- a/Interop/Runtime/build.gradle +++ b/Interop/Runtime/build.gradle @@ -24,7 +24,9 @@ model { binaries.all { cCompiler.args compilerArgsForJniIncludes cCompiler.args "-I$ffiIncludePath" - linker.args "$ffiLibPath/libffi.a" + + String libffiPicPath = "$ffiLibPath/libffi_pic.a" + linker.args file(libffiPicPath).exists() ? libffiPicPath : "$ffiLibPath/libffi.a" } } }