configure: force clang when on freebsd.

This commit is contained in:
Graydon Hoare 2012-11-14 14:27:45 -08:00
parent c44c9a47d8
commit 4b0e1336b2
1 changed files with 9 additions and 0 deletions

9
configure vendored
View File

@ -432,6 +432,15 @@ then
fi
fi
# Force freebsd to build with clang; gcc doesn't like us there
if [ $CFG_OSTYPE = unknown-freebsd ]
then
step_msg "on FreeBSD, forcing use of clang"
CFG_ENABLE_CLANG=1
putvar CFG_ENABLE_CLANG
fi
if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]
then
err "either clang or gcc is required"