fix build: (mac and linux)

common fix of build: add to link flags -LlibffiDir -lffi
llvm.def: os specific remove from ldflags -lffi, it shoould appear after -LlibffiDir...
This commit is contained in:
Vasily Levchenko
2016-10-26 21:14:43 +03:00
parent 2690c87b9f
commit 202d03644d
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ kotlinNativeInterop {
llvm {
defFile 'llvm.def'
compilerOpts "-I$llvmDir/include"
linkerOpts "-L$llvmDir/lib"
linkerOpts "-L$llvmDir/lib -L$libffiDir/lib -lffi"
}
hash { // TODO: copy-pasted from ':common:compileHash'