mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +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.
|
# Choose compiler options by osversion if not cross-compiling.
|
||||||
if [ "$crossbuild" = "false" ]; then
|
if [ "$crossbuild" = "false" ]; then
|
||||||
case "$osversion" in
|
case "$osversion" in
|
||||||
macos*)
|
FreeBSD*|macos*)
|
||||||
# Use clang on macOS if present
|
# Use the system compiler on FreeBSD and macOS
|
||||||
if [ -z "$CC" -a -x /usr/bin/clang ]; then
|
if [ -z "$CC" -a -x /usr/bin/cc ]; then
|
||||||
CC=/usr/bin/clang; export CC
|
CC=/usr/bin/cc; export CC
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user