mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +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
|
case "$osversion" in
|
||||||
macos10[0-6]-i386|macos10[0-6]-x86_64)
|
macos10[0-6]-i386|macos10[0-6]-x86_64)
|
||||||
# Build intel universal binaries for 10.6 and below
|
# 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
|
# Build arm64/x86_64 universal binaries for macOS 11
|
||||||
ARCH_FLAGS="-arch arm64 -arch x86_64"
|
: ${ARCH_FLAGS="-arch arm64 -arch x86_64"}
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if [ "${osversion}" != "`$scriptdir/pp --probe`" ]; then
|
if [ "${osversion}" != "`$scriptdir/pp --probe`" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user