package/llvm: specify LLVM_ENABLE_BINDINGS=OFF
authorJoseph Kogut <joseph.kogut@gmail.com>
Mon, 16 Mar 2020 20:01:05 +0000 (13:01 -0700)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 18 Mar 2020 21:46:22 +0000 (22:46 +0100)
commite6a1ee9a8aee9faecb8d1d1bdd8697d18c23b605
treef3e42a96e0524b52d99c87912779afe2b8884857
parentb42db7db9f2be3f37217898022e097dfc7509756
package/llvm: specify LLVM_ENABLE_BINDINGS=OFF

LLVM builds bindings for other languages such as Go and OCaml when the
appropriate dependencies can be found. We currently don't support
building these bindings in Buildroot, as they're currently unused by any
package.

Building these bindings was originally disabled by overriding the
dependencies with values indicating that they were not found.

Newer versions of LLVM no longer disable the OCaml bindings when overriding
OCAMLFIND. Consequently, the build process attempts to install the bindings
to the default location on the host of /usr/lib/ocaml/llvm, causing a
permissions error and build failure.

Additionally, LLVM has since added the variable LLVM_ENABLE_BINDINGS to
control whether bindings are enabled, so we override that to disable the
bindings.

Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com>
Reviewed-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/llvm/llvm.mk