X-Git-Url: https://git.tld-linux.org/?p=packages%2Fllvm.git;a=blobdiff_plain;f=llvm-ocaml-shared.patch;fp=llvm-ocaml-shared.patch;h=0ab5cacad36e194e7b356a6f53f00580fdda07ff;hp=0000000000000000000000000000000000000000;hb=9444547a02350424e740b4ca65361b05fe0b2b7c;hpb=656dad7958424646715fdc78658078a516c49ae3 diff --git a/llvm-ocaml-shared.patch b/llvm-ocaml-shared.patch new file mode 100644 index 0000000..0ab5cac --- /dev/null +++ b/llvm-ocaml-shared.patch @@ -0,0 +1,26 @@ +--- llvm-3.8.1.src/cmake/modules/AddOCaml.cmake.orig 2016-10-11 22:03:29.695199936 +0200 ++++ llvm-3.8.1.src/cmake/modules/AddOCaml.cmake 2016-10-12 20:14:25.327621462 +0200 +@@ -37,11 +37,13 @@ + + set(ocaml_inputs) + ++ option(OCAML_BUILD_SHARED_LIBS "Build ocaml shared libraries" ON) ++ + set(ocaml_outputs "${bin}/${name}.cma") + if( ARG_C ) + list(APPEND ocaml_outputs + "${bin}/lib${name}${CMAKE_STATIC_LIBRARY_SUFFIX}") +- if ( BUILD_SHARED_LIBS ) ++ if ( OCAML_BUILD_SHARED_LIBS ) + list(APPEND ocaml_outputs + "${bin}/dll${name}${CMAKE_SHARED_LIBRARY_SUFFIX}") + endif() +@@ -62,7 +64,7 @@ + list(APPEND ocaml_flags ${dep_ocaml_flags}) + endforeach() + +- if( NOT BUILD_SHARED_LIBS ) ++ if( NOT OCAML_BUILD_SHARED_LIBS ) + list(APPEND ocaml_flags "-custom") + endif() +