Travis testing tcl for MacOSX10.14 and later

Used suggestion from
https://www.postgresql-archive.org/PG-vs-macOS-Mojave-td6047357.html#a6056680
to add in sysroot.

Note that the examples failed at runtime unless tcl was installed from homebrew:
  brew install --cask tcl
This commit is contained in:
William S Fulton 2021-02-20 13:43:47 +00:00
commit ac8de714af

View file

@ -496,7 +496,9 @@ fi
dirs="/usr/lib*/ /usr/lib*/tcl*/ /usr/local/lib*/ /usr/local/lib*/tcl*/"
case $host in
*-*-darwin*)
dirs="/System/Library/Frameworks/Tcl.framework/ $dirs"
tcl_framework="/System/Library/Frameworks/Tcl.framework/"
macos_sysroot="$(xcodebuild -version -sdk macosx Path 2>/dev/null)" # For MacOSX10.14 and later
dirs="$macos_sysroot$tcl_framework $tcl_framework $dirs"
;;
*)
;;