Only prefer clang over gcc on BSD systems.

This commit is contained in:
Todd C. Miller
2019-10-06 08:35:28 -06:00
parent c64add170e
commit 364821602d
2 changed files with 551 additions and 2 deletions

View File

@@ -272,8 +272,14 @@ AC_CONFIG_LIBOBJ_DIR(lib/util)
dnl
dnl We must call AC_USE_SYSTEM_EXTENSIONS before the compiler is run.
dnl On BSD systems we prefer clang over gcc.
dnl
AC_PROG_CC([clang gcc])
case "$host" in
*-*-*bsd*|*-*-darwin*)
AC_PROG_CC([clang gcc]);;
*)
AC_PROG_CC;;
esac
AC_USE_SYSTEM_EXTENSIONS
#