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" }