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:
parent
78849e6728
commit
0645a2ade6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user