configure: If set, pass the cross-tools-prefix when invoking Clang.

This lets clang use our linker and other binutils instead of its own.
Now clang builds produce a working bootloader and get all the way
to the "rocket" icon, at which point userland init fails.
This commit is contained in:
Augustin Cavalier 2018-06-18 17:45:47 -04:00
parent 9ac3062734
commit ddf7f64365

3
configure vendored
View File

@ -915,6 +915,9 @@ else
# prepare gcc settings and get the actual target architecture
if [ $useClang = 1 ]; then
gcc="$HAIKU_clang -target ${targetMachine} -no-integrated-as"
if [ ! -z "${crossToolsPrefix}" ]; then
gcc="$gcc -B ${crossToolsPrefix}"
fi
# Clang's compiler intrinsics are not compatible with GCC's or even
# across versions of Clang, so we must collect them for use in the build.