Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff --git a/hints/darwin.sh b/hints/darwin.sh 2index afadf53..80b7533 100644 3--- a/hints/darwin.sh 4+++ b/hints/darwin.sh 5@@ -329,7 +329,7 @@ EOM 6 # sw_vers output what we want 7 # "ProductVersion: 10.10.5" "10.10" 8 # "ProductVersion: 10.11" "10.11" 9- prodvers=`sw_vers|awk '/^ProductVersion:/{print $2}'|awk -F. '{print $1"."$2}'` 10+ prodvers="${MACOSX_DEPLOYMENT_TARGET:-10.12}" 11 case "$prodvers" in 12 10.*) 13 add_macosx_version_min ccflags $prodvers