Skip to content

Do not install native-code executables when cross-compiling #6861

@vicuna

Description

@vicuna

Original bug ID: 6861
Reporter: @whitequark
Assigned to: @shindere
Status: assigned (set by @damiendoligez on 2015-05-08T21:15:11Z)
Resolution: open
Priority: normal
Severity: minor
Version: 4.02.2+dev / +rc1
Category: configure and build/install
Tags: cross-compilation
Child of: #6266
Monitored by: @gasche

Bug description

The buildsystem builds a few executables, namely ocamlrun{,d} and ocamlyacc, which cannot be executed since they are built for the target, not host, architecture.

Since ocamlrun and ocamlyacc are a hard dependency for building a cross-compiler, they can be simply symlinked to whatever was used to build the cross-compiler.
ocamlrund may not be present and it is also not a dependency of anything in OCaml ecosystem, so it can be just not installed. It probably makes sense to not build these when cross-compiling as well.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions