Skip to content

t3key 0.2.11: cannot run configure with --host parameter #3

@jengelh

Description

@jengelh

The presence of --host does not necessarily indicate cross-compilation (e.g. if we already are on x86_64). configure should always fall back to unprefixed commands; that's what normal (autoconf-based) configure would do.
[Programs that encapsulate configure, such as rpmbuild, can/do unconditionally specify --host at all times, cf. rpm --eval '%configure'. Granted, %configure should probably only be used with autoconf-based configures and not hand-crafted ones—that one is on me.]

$ ./configure --host=x86_64-suse-linux
which: no x86_64-suse-linux-libtool in (/home/ej/.local/bin:/home/ej/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin)
INFO: cross compiling using the following settings:
  CC=x86_64-suse-linux-gcc
  CXX=x86_64-suse-linux-g++
  LIBTOOL=x86_64-suse-linux-libtool
  PKG_CONFIG=x86_64-suse-linux-pkg-config
Checking for working make (make)... yes
Checking for working C compiler (x86_64-suse-linux-gcc)... no
No working C compiler found. See config.log for errors.

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