From f55cc1993ad0cbd68d78306d8d88ff93d3e2f87b Mon Sep 17 00:00:00 2001 From: MarioG-X <20360699+MarioG-X@users.noreply.github.com> Date: Tue, 28 Dec 2021 12:02:15 -0800 Subject: [PATCH] [libvpx] configure.sh erroneous make warnings starting with macOS 11.5.1 --- libs/libvpx/build/make/configure.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/libvpx/build/make/configure.sh b/libs/libvpx/build/make/configure.sh index 728c3e2568..b1f7804a59 100644 --- a/libs/libvpx/build/make/configure.sh +++ b/libs/libvpx/build/make/configure.sh @@ -865,7 +865,11 @@ process_common_toolchain() { case ${toolchain} in *-darwin-*) mvmin=$(sw_vers -productVersion) - mvmin="-mmacosx-version-min="${mvmin%.*} + if [[ $mvmin == 10.* ]]; then + mvmin="-mmacosx-version-min=""${mvmin%.*}" + else + mvmin="-mmacosx-version-min=""${mvmin%%.*}" + fi add_cflags $mvmin add_ldflags $mvmin ;;