0018-fix-path-to-libffi.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. From 94cf62bdf4a9e74ec4613f3df8ae1e7e925e95ba Mon Sep 17 00:00:00 2001
  2. From: Jun Yuan Tan <junyuan.tan@starfivetech.com>
  3. Date: Tue, 9 Nov 2021 10:34:47 +0800
  4. Subject: [PATCH 18/34] fix path to libffi
  5. FFI_LIBRARY_PATH is the full path to libffi so when building something that links to
  6. libLLVMInterpreter, we were looking for libffi in clang's recipe-sysroot instead of
  7. the recipe's sysroot.
  8. Rebased to LLVM 14.0.0 by Jun Yuan Tan
  9. Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
  10. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  11. Signed-off-by: Jun Yuan Tan <junyuan.tan@starfivetech.com>
  12. ---
  13. llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt | 2 +-
  14. 1 file changed, 1 insertion(+), 1 deletion(-)
  15. diff --git a/llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt b/llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt
  16. index 976219830d5e..9930e01559e9 100644
  17. --- a/llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt
  18. +++ b/llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt
  19. @@ -22,5 +22,5 @@ add_llvm_component_library(LLVMInterpreter
  20. )
  21. if( LLVM_ENABLE_FFI )
  22. - target_link_libraries( LLVMInterpreter PRIVATE ${FFI_LIBRARY_PATH} )
  23. + target_link_libraries( LLVMInterpreter PRIVATE ffi )
  24. endif()
  25. --
  26. 2.33.1