aboutsummaryrefslogtreecommitdiff
path: root/libgcc/config/t-darwin
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2023-05-11 23:24:02 +0100
committerIain Sandoe <iain@sandoe.co.uk>2023-05-19 09:06:01 +0100
commit20b8779ea9bd82b26eeb195b30f695168cd7ae1d (patch)
tree9c09af18d5103e14cf644e285d0605efae5e5c4f /libgcc/config/t-darwin
parent24dcf65dabf48b4d33b7f2d4c68f369627b61bdc (diff)
downloadgcc-20b8779ea9bd82b26eeb195b30f695168cd7ae1d.zip
gcc-20b8779ea9bd82b26eeb195b30f695168cd7ae1d.tar.gz
gcc-20b8779ea9bd82b26eeb195b30f695168cd7ae1d.tar.bz2
Darwin, libgcc : Adjust min version supported for the OS.
Tools from later versions of the OS deprecate or fail to support earlier OS revisions. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> libgcc/ChangeLog: * config.host: Arrange to set min Darwin OS versions from the configured host version. * config/darwin10-unwind-find-enc-func.c: Do not use current headers, but declare the nexessary structures locally to the versions in use for Mac OSX 10.6. * config/t-darwin: Amend to handle configured min OS versions. * config/t-darwin-min-1: New. * config/t-darwin-min-5: New. * config/t-darwin-min-8: New.
Diffstat (limited to 'libgcc/config/t-darwin')
-rw-r--r--libgcc/config/t-darwin10
1 files changed, 6 insertions, 4 deletions
diff --git a/libgcc/config/t-darwin b/libgcc/config/t-darwin
index 299d26c..a3bb70c 100644
--- a/libgcc/config/t-darwin
+++ b/libgcc/config/t-darwin
@@ -1,15 +1,15 @@
# Set this as a minimum (unless overriden by arch t-files) since it's a
# reasonable lowest common denominator that works for all our archs.
-HOST_LIBGCC2_CFLAGS += -mmacosx-version-min=10.4
+HOST_LIBGCC2_CFLAGS += $(DARWIN_MIN_LIB_VERSION)
crt3.o: $(srcdir)/config/darwin-crt3.c
- $(crt_compile) -mmacosx-version-min=10.4 -c $<
+ $(crt_compile) $(DARWIN_MIN_CRT_VERSION) -c $<
crttms.o: $(srcdir)/config/darwin-crt-tm.c
- $(crt_compile) -mmacosx-version-min=10.4 -DSTART -c $<
+ $(crt_compile) $(DARWIN_MIN_CRT_VERSION) -DSTART -c $<
crttme.o: $(srcdir)/config/darwin-crt-tm.c
- $(crt_compile) -mmacosx-version-min=10.4 -DEND -c $<
+ $(crt_compile) $(DARWIN_MIN_CRT_VERSION) -DEND -c $<
# Make emutls weak so that we can deal with -static-libgcc, override the
# hidden visibility when this is present in libgcc_eh.
@@ -25,6 +25,8 @@ libemutls_w.a: emutls_s.o
$(RANLIB_FOR_TARGET) $@
# Patch to __Unwind_Find_Enclosing_Function for Darwin10.
+# This needs to be built for darwin10, regardless of the current platform
+# version.
d10-uwfef.o: $(srcdir)/config/darwin10-unwind-find-enc-func.c libgcc_tm.h
$(crt_compile) -mmacosx-version-min=10.6 -c $<