2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 01:49:11 +00:00

Use /usr/bin/cc on FreeBSD and macOS.

This commit is contained in:
Todd C. Miller 2021-05-12 15:19:43 -06:00
parent 78849e6728
commit 0645a2ade6

View File

@ -132,10 +132,10 @@ fi
# Choose compiler options by osversion if not cross-compiling.
if [ "$crossbuild" = "false" ]; then
case "$osversion" in
macos*)
# Use clang on macOS if present
if [ -z "$CC" -a -x /usr/bin/clang ]; then
CC=/usr/bin/clang; export CC
FreeBSD*|macos*)
# Use the system compiler on FreeBSD and macOS
if [ -z "$CC" -a -x /usr/bin/cc ]; then
CC=/usr/bin/cc; export CC
fi
;;
esac