-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels