From 71da52456e8545c9ab4ebb787810ed01014ae0ee Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Wed, 5 Oct 2016 16:19:37 +0300 Subject: [PATCH] linux build fix: on linux we need to set LD_LIBRARY_PATH to launch jvm with native dependency to llvm --- InteropExample/build.gradle | 2 ++ backend.native/build.gradle | 1 + 2 files changed, 3 insertions(+) diff --git a/InteropExample/build.gradle b/InteropExample/build.gradle index c787447c284..fe8e79b8130 100644 --- a/InteropExample/build.gradle +++ b/InteropExample/build.gradle @@ -26,6 +26,8 @@ genInteropStubs { // these variables will be passed to native toolchain used by stub generator: environment 'CPATH' : "$llvmInstallPath/include" environment 'LIBRARY_PATH' : "$llvmInstallPath/lib" + //environment 'LD_DEBUG' : "all" + environment 'LD_LIBRARY_PATH' : "$llvmInstallPath/lib" } mainClassName = 'MainKt' diff --git a/backend.native/build.gradle b/backend.native/build.gradle index fd9dd957768..40d5adf5284 100644 --- a/backend.native/build.gradle +++ b/backend.native/build.gradle @@ -77,4 +77,5 @@ repositories { genCompilerInteropStubs { environment 'CPATH' : "$llvmInstallPath/include" environment 'LIBRARY_PATH' : "$llvmInstallPath/lib" + environment 'LD_LIBRARY_PATH' : "$llvmInstallPath/lib" }