diagnostics: rename tree-diagnostic-path.cc to diagnostic-path.cc
[official-gcc.git] / libgcc / config / t-darwin
blob0f65b54a2302335cde125b01725a8806886eabdc
1 # Set this as a minimum (unless overriden by arch t-files) since it's a
2 # reasonable lowest common denominator that works for all our archs.
3 HOST_LIBGCC2_CFLAGS += $(DARWIN_MIN_LIB_VERSION)
5 crt3.o: $(srcdir)/config/darwin-crt3.c
6         $(crt_compile) $(DARWIN_MIN_CRT_VERSION) -c $<
8 crttms.o: $(srcdir)/config/darwin-crt-tm.c
9         $(crt_compile) $(DARWIN_MIN_CRT_VERSION) -DSTART -c $<
11 crttme.o: $(srcdir)/config/darwin-crt-tm.c
12         $(crt_compile) $(DARWIN_MIN_CRT_VERSION) -DEND -c $<
14 # Make emutls weak so that we can deal with -static-libgcc, override the
15 # hidden visibility when this is present in libgcc_eh.
16 emutls.o: HOST_LIBGCC2_CFLAGS += \
17   -DEMUTLS_ATTR='__attribute__((__weak__,__visibility__("default")))'
18 emutls_s.o: HOST_LIBGCC2_CFLAGS += \
19   -DEMUTLS_ATTR='__attribute__((__weak__,__visibility__("default")))'
21 # Make the emutls crt as a convenience lib so that it can be linked
22 # optionally, use the shared version so that we can link with DSO.
23 libemutls_w.a: emutls_s.o
24         $(AR_CREATE_FOR_TARGET) $@ $<
25         $(RANLIB_FOR_TARGET) $@
27 # Patch to __Unwind_Find_Enclosing_Function for Darwin10.
28 # This needs to be built for darwin10, regardless of the current platform
29 # version.
30 d10-uwfef.o: $(srcdir)/config/darwin10-unwind-find-enc-func.c libgcc_tm.h
31         $(crt_compile) -mmacosx-version-min=10.6 -c $<
33 # Using this crt as a library means that it will not be added to an exe
34 # (or module) unless needed.
35 libd10-uwfef.a: d10-uwfef.o
36         $(AR_CREATE_FOR_TARGET) $@ d10-uwfef.o
37         $(RANLIB_FOR_TARGET) $@
39 ###### Unwinder #######
40 # Most Darwin versions get their unwinder from libSystem; older versions
41 # have an installed /usr/lib/libgcc_s.1.dylib.
42 # So do not add the unwinder to the shared libgcc.
43 LIB2ADDEHSHARED =
45 # We still need it in the _eh.a for earlier platform versions.
46 # Use unwind-dw2-fde-darwin
47 LIB2ADDEH = $(srcdir)/unwind-dw2.c \
48             $(srcdir)/config/unwind-dw2-fde-darwin.c \
49             $(srcdir)/unwind-c.c
51 # Do not build a shared unwind lib by default.
52 LIBEHSOBJS=
54 # Make heap trampoline helpers weak definitions so that we can merge them from
55 # multiple DSOs.
56 heap-trampoline.o: HOST_LIBGCC2_CFLAGS += \
57   -DHEAP_T_ATTR='__attribute__((__weak__,__visibility__("default")))'
58 heap-trampoline_s.o: HOST_LIBGCC2_CFLAGS += \
59   -DHEAP_T_ATTR='__attribute__((__weak__,__visibility__("default")))'
61 # Make a heap trampoline support CRT so that it can be linked optionally, use
62 # the shared version so that we can link with DSOs.
63 libheapt_w.a: heap-trampoline_s.o
64         $(AR_CREATE_FOR_TARGET) $@ $<
65         $(RANLIB_FOR_TARGET) $@
67 # Symbols for all the sub-ports.
68 SHLIB_MAPFILES = libgcc-std.ver $(srcdir)/config/libgcc-libsystem.ver