Fix to support macOS 11.0 "Big Sur"

This commit is contained in:
ManoloFLTK 2020-08-30 10:14:01 +02:00
parent 1f20806466
commit a59026fa1c
1 changed files with 2 additions and 1 deletions

View File

@ -97,7 +97,8 @@ case $host_os in
host_os_gui="X11"
OPTIM="-U__APPLE__ $OPTIM"
macosversion=`sw_vers -productVersion | cut -d. -f2`
if test $macosversion -ge "13" ; then
macosversion_maj=`sw_vers -productVersion | cut -d. -f1`
if test $macosversion_maj -ge "11" -o $macosversion -ge "13" ; then
CXXFLAGS="$CXXFLAGS -mmacosx-version-min=10.9 -D_LIBCPP_HAS_THREAD_API_PTHREAD"
fi
fi