[libvpx] configure.sh erroneous make warnings starting with macOS 11.5.1

This commit is contained in:
MarioG-X 2021-12-28 12:02:15 -08:00 committed by GitHub
parent 083a9ab1c3
commit f55cc1993a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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
;;