Permalink
Browse files

configure: force clang when on freebsd.

  • Loading branch information...
1 parent c44c9a4 commit 4b0e1336b26b5bc29e14370e55d4811f15b1dce8 @graydon graydon committed Nov 14, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 configure
View
@@ -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"

0 comments on commit 4b0e133

Please sign in to comment.