You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.0 KiB

  1. --- a/hints/darwin.sh
  2. +++ b/hints/darwin.sh
  3. @@ -301,7 +301,7 @@ case "$osvers" in # Note: osvers is the
  4. # We now use MACOSX_DEPLOYMENT_TARGET, if set, as an override by
  5. # capturing its value and adding it to the flags.
  6. case "$MACOSX_DEPLOYMENT_TARGET" in
  7. - 10.*)
  8. + [1-9][0-9].*)
  9. add_macosx_version_min ccflags $MACOSX_DEPLOYMENT_TARGET
  10. add_macosx_version_min ldflags $MACOSX_DEPLOYMENT_TARGET
  11. ;;
  12. @@ -313,7 +313,7 @@ case "$osvers" in # Note: osvers is the
  13. *** Unexpected MACOSX_DEPLOYMENT_TARGET=$MACOSX_DEPLOYMENT_TARGET
  14. ***
  15. -*** Please either set it to 10.something, or to empty.
  16. +*** Please either set it to a valid macOS version number (e.g., 10.15) or to empty.
  17. EOM
  18. exit 1
  19. @@ -327,7 +327,7 @@ EOM
  20. # "ProductVersion: 10.11" "10.11"
  21. prodvers=`sw_vers|awk '/^ProductVersion:/{print $2}'|awk -F. '{print $1"."$2}'`
  22. case "$prodvers" in
  23. - 10.*)
  24. + [1-9][0-9].*)
  25. add_macosx_version_min ccflags $prodvers
  26. add_macosx_version_min ldflags $prodvers
  27. ;;