X-Git-Url: https://git.tld-linux.org/?p=packages%2Fllvm.git;a=blobdiff_plain;f=llvm-ocaml-link-dylib.patch;fp=llvm-ocaml-link-dylib.patch;h=e382acd190e51f2a6732a632dc66e27f84593447;hp=0000000000000000000000000000000000000000;hb=8144667b836635eaedf66de284e79af5344716cc;hpb=9a942b15771786b61f66fd6011b30beab8f4eb8f diff --git a/llvm-ocaml-link-dylib.patch b/llvm-ocaml-link-dylib.patch new file mode 100644 index 0000000..e382acd --- /dev/null +++ b/llvm-ocaml-link-dylib.patch @@ -0,0 +1,25 @@ +--- llvm-17.0.4.src/cmake/modules/AddOCaml.cmake.orig 2023-11-06 21:27:39.906604595 +0100 ++++ llvm-17.0.4.src/cmake/modules/AddOCaml.cmake 2023-11-06 22:12:34.479135305 +0100 +@@ -69,7 +69,7 @@ function(add_ocaml_library name) + endif() + + if(LLVM_LINK_LLVM_DYLIB) +- list(APPEND ocaml_flags "-lLLVM") ++ list(APPEND ocaml_flags "-lLLVM-17") + else() + explicit_map_components_to_libraries(llvm_libs ${ARG_LLVM}) + foreach( llvm_lib ${llvm_libs} ) +@@ -186,9 +186,13 @@ function(add_ocaml_library name) + endforeach() + + if( NOT LLVM_OCAML_OUT_OF_TREE ) ++ if(LLVM_LINK_LLVM_DYLIB) ++ add_dependencies("ocaml_${name}" LLVM) ++ else() + foreach( llvm_lib ${llvm_libs} ) + add_dependencies("ocaml_${name}" "${llvm_lib}") + endforeach() ++ endif() + endif() + + add_dependencies("ocaml_all" "ocaml_${name}")