diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-08-30 10:14:01 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-08-30 10:14:16 +0200 |
| commit | a59026fa1cfcbb26fb6cfa486ad80a7c69c69ef7 (patch) | |
| tree | 5a36b655167b258f19602127027d33339ee1064a /configure.ac | |
| parent | 1f20806466e8a1adff85aa327dfb50665d9a7948 (diff) | |
Fix to support macOS 11.0 "Big Sur"
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 692c3d706..800ef780a 100644 --- a/configure.ac +++ b/configure.ac @@ -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 |
