mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
configure: do not detect incorrect cross-compiler
On Ubuntu 11.04, configuring with --build=x86_64-unknown-linux-gnu
--host=x86_64-linux-gnu finds a wrong cross-compiler:
checking for cross-compiler... x86_64-x86_64-pc-linux-gnu-gcc
This happens because of a dash vs underscore inconsistency in configure.in:
host=x86_64-pc-linux-gnu
host_cpu=x86_64
host_os=linux-gnu
which ${host_cpu}-${host_os}-gcc >/dev/null 2>&1 && echo ${host_cpu}-${host-os}-gcc
This bug has been introduced in the initial --with-host support from
2002, commit eb267ade29
This configure command is about "cross-compiling for i586", where the
system compiler is used, which just -m32 additional options.
The --build value comes from config.guess.
This commit is contained in:
parent
72bbf96e1f
commit
b11911dddf
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ then
|
|||
|
||||
which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc
|
||||
which ${host_cpu}-${host_os}-gcc >/dev/null 2>&1 \
|
||||
&& CC=${host_cpu}-${host-os}-gcc
|
||||
&& CC=${host_cpu}-${host_os}-gcc
|
||||
which ${host_cpu}-${host_vendor}-${host_os}-gcc >/dev/null 2>&1 \
|
||||
&& CC=${host_cpu}-${host_vendor}-${host_os}-gcc
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue