Skip to content

Cross-Compiling doesn't work #6

@federkamm

Description

@federkamm

There are some issues when cross-compiling (tested with c3d/recorder).

  1. CC environment variable doesn't get respected (fixed by replacing "CC=" in config.gnu.mk with "CC?=")
  2. Extra dash to CROSS_COMPILE. In my case (yocto SDK) CROSS_COMPILE is set to "aarch64-poky-linux-" with trailing dash. make-it-quick adds an extra dash. Don't know who is "wrong" here, but might be fixable in make-it-quick
  3. Trys to execute compiled files for compiler checks. In MIO_CFGTEST the line '"$<".exe > "$<".out' tries to execute a compiled file. That fails if the file was compiled for another architecture. Removing this line solved the problem for me (most tests only need to check if the file can be compiled, I don't know which tests would have to execute the compiled file but I think that can't be used to find anything out about cross-compilers).

Maybe, something of this is fixable, here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions