aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2024-09-22 14:30:30 +0100
committerIain Sandoe <iain@sandoe.co.uk>2024-09-22 19:43:08 +0100
commit43eab54939d37d4e634a692910d31adafc053e38 (patch)
tree67d7634d309470c394223f5249be24773af587d3
parent0f52a92ab249bde64b7570d4cf549437a3283520 (diff)
downloadgcc-43eab54939d37d4e634a692910d31adafc053e38.zip
gcc-43eab54939d37d4e634a692910d31adafc053e38.tar.gz
gcc-43eab54939d37d4e634a692910d31adafc053e38.tar.bz2
libgcc, Darwin: From macOS 11, make that the earliest supported.
For libgcc, we have (so far) supported building a DSO that supports earlier versions of the OS than the target. From macOS 11, there are APIs that do not exist on earlier OS versions, so limit the libgcc range to macOS11..current. libgcc/ChangeLog: * config.host: From macOS 11, limit earliest macOS support to macOS 11. * config/t-darwin-min-11: New file. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
-rw-r--r--libgcc/config.host5
-rw-r--r--libgcc/config/t-darwin-min-113
2 files changed, 7 insertions, 1 deletions
diff --git a/libgcc/config.host b/libgcc/config.host
index 9fae51d..4fb4205 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -236,7 +236,10 @@ case ${host} in
esac
tmake_file="$tmake_file t-slibgcc-darwin"
case ${host} in
- *-*-darwin1[89]* | *-*-darwin2* )
+ *-*-darwin2*)
+ tmake_file="t-darwin-min-11 $tmake_file"
+ ;;
+ *-*-darwin1[89]*)
tmake_file="t-darwin-min-8 $tmake_file"
;;
*-*-darwin9* | *-*-darwin1[0-7]*)
diff --git a/libgcc/config/t-darwin-min-11 b/libgcc/config/t-darwin-min-11
new file mode 100644
index 0000000..4009d41
--- /dev/null
+++ b/libgcc/config/t-darwin-min-11
@@ -0,0 +1,3 @@
+# Support building with -mmacosx-version-min back to macOS 11.
+DARWIN_MIN_LIB_VERSION = -mmacosx-version-min=11
+DARWIN_MIN_CRT_VERSION = -mmacosx-version-min=11