Skip to content

Add variable to override host for end users. #40

@xbjfk

Description

@xbjfk

As clang is natively a cross compiler, relying on the compiler prefix as the sole heuristic to determine means anyone not using a prefixed compiler is unable to cross compile. For example, if using clang --sysroot=... --target=... the autoconf --host will not be set.

To work around this, there are only 3 ways I know of:

  1. Hope the library provides an override (e.g. MP3LAME_SYS_OVERRIDE_HOST)
  2. Patch the library.
  3. Create wrappers/symlinks for the compiler.

None of these options are particularly great. Hence, I propose a new variable: AUTOTOOLS_RS_OVERRIDE_HOST. Setting this variable will override the host config option to the user's choice, making it much easier to cross compile.

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