t-darwin 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 += -mmacosx-version-min=10.4
  4. crt3.o: $(srcdir)/config/darwin-crt3.c
  5. $(crt_compile) -mmacosx-version-min=10.4 -c $<
  6. crttms.o: $(srcdir)/config/darwin-crt-tm.c
  7. $(crt_compile) -mmacosx-version-min=10.4 -DSTART -c $<
  8. crttme.o: $(srcdir)/config/darwin-crt-tm.c
  9. $(crt_compile) -mmacosx-version-min=10.4 -DEND -c $<
  10. # Make emutls weak so that we can deal with -static-libgcc, override the
  11. # hidden visibility when this is present in libgcc_eh.
  12. emutls.o: HOST_LIBGCC2_CFLAGS += \
  13. -DEMUTLS_ATTR='__attribute__((__weak__,__visibility__("default")))'
  14. emutls_s.o: HOST_LIBGCC2_CFLAGS += \
  15. -DEMUTLS_ATTR='__attribute__((__weak__,__visibility__("default")))'
  16. # Make the emutls crt as a convenience lib so that it can be linked
  17. # optionally, use the shared version so that we can link with DSO.
  18. libemutls_w.a: emutls_s.o
  19. $(AR_CREATE_FOR_TARGET) $@ $<
  20. $(RANLIB_FOR_TARGET) $@
  21. # Patch to __Unwind_Find_Enclosing_Function for Darwin10.
  22. d10-uwfef.o: $(srcdir)/config/darwin10-unwind-find-enc-func.c libgcc_tm.h
  23. $(crt_compile) -mmacosx-version-min=10.6 -c $<
  24. # Using this crt as a library means that it will not be added to an exe
  25. # (or module) unless needed.
  26. libd10-uwfef.a: d10-uwfef.o
  27. $(AR_CREATE_FOR_TARGET) $@ d10-uwfef.o
  28. $(RANLIB_FOR_TARGET) $@
  29. ###### Unwinder #######
  30. # Most Darwin versions get their unwinder from libSystem; older versions
  31. # have an installed /usr/lib/libgcc_s.1.dylib.
  32. # So do not add the unwinder to the shared libgcc.
  33. LIB2ADDEHSHARED =
  34. # We still need it in the _eh.a for earlier platform versions.
  35. # Use unwind-dw2-fde-darwin
  36. LIB2ADDEH = $(srcdir)/unwind-dw2.c \
  37. $(srcdir)/config/unwind-dw2-fde-darwin.c \
  38. $(srcdir)/unwind-c.c
  39. # Do not build a shared unwind lib by default.
  40. LIBEHSOBJS=
  41. # Symbols for all the sub-ports.
  42. SHLIB_MAPFILES = libgcc-std.ver $(srcdir)/config/libgcc-libsystem.ver