[haiku-development] configure script: --use-clang does not work right

  • From: "Thomas Mueller" <mueller6723@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 15 Aug 2015 04:08:30 +0000

I tried to cross-build Haiku from FreeBSD with Clang, using --use-clang with
configure, but got

../configure: gcc: not found


I looked through configure script, and around line 427, see

platform=`uname`
platformMachine=`uname -m`
targetArchs=
buildCrossTools=
buildCrossToolsScript="$sourceDir/build/scripts/build_cross_tools"
buildCrossToolsJobs=
useClang=0
useGccGraphiteDefault=0
unknownArchIndex=1
haikuTargetArchs=

if [ -z "$CC" ]; then
CC=gcc
fi

I kept searching on string "CC", and found nowhere that CC would be set to
clang.

I think I might be able to get past this by including "CC=clang" in arguments
to configure, but this really ought to be corrected in configure script.

My configure command was

../configure --bootstrap ../../haikuporter/haikuporter ../../haikuports.cross
../../haikuports --build-cross-tools x86_gcc2 ../../buildtools
--build-cross-tools x86 --use-xattr --use-clang --include-gpl-addons
--include-3rdparty

It looks like I typed "--use-clang" correctly.

Tom


Other related posts:

  • » [haiku-development] configure script: --use-clang does not work right - Thomas Mueller