mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 01:49:11 +00:00
Allow ARCH_FLAGS to be overridden and handle macOS 12.
This commit is contained in:
parent
9f427b0172
commit
79d8500347
@ -339,11 +339,11 @@ case "$osversion" in
|
||||
case "$osversion" in
|
||||
macos10[0-6]-i386|macos10[0-6]-x86_64)
|
||||
# Build intel universal binaries for 10.6 and below
|
||||
ARCH_FLAGS="-arch i386 -arch x86_64"
|
||||
: ${ARCH_FLAGS="-arch i386 -arch x86_64"}
|
||||
;;
|
||||
macos11*)
|
||||
macos1[1-9]*)
|
||||
# Build arm64/x86_64 universal binaries for macOS 11
|
||||
ARCH_FLAGS="-arch arm64 -arch x86_64"
|
||||
: ${ARCH_FLAGS="-arch arm64 -arch x86_64"}
|
||||
;;
|
||||
esac
|
||||
if [ "${osversion}" != "`$scriptdir/pp --probe`" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user