t-darwin 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. crt2.o: $(srcdir)/config/rs6000/darwin-crt2.c
  2. $(crt_compile) -mmacosx-version-min=10.1 -c $<
  3. # The sources for this indicate that there are some parts that
  4. # don't apply >= 10.4
  5. crt3_2.o: $(srcdir)/config/darwin-crt3.c
  6. $(crt_compile) -mmacosx-version-min=10.1 -c $<
  7. # The outlined register save/restore functions need to run anywhere, and
  8. # they must be leaf functions suitable for use in an endfile.
  9. PPC_ENDFILE_SRC = \
  10. $(srcdir)/config/rs6000/darwin-gpsave.S \
  11. $(srcdir)/config/rs6000/darwin-fpsave.S \
  12. $(srcdir)/config/rs6000/darwin-vecsave.S
  13. PPC_ENDFILE_OBJS = \
  14. darwin-gpsave.o \
  15. darwin-fpsave.o \
  16. darwin-vecsave.o
  17. darwin-gpsave.o: $(srcdir)/config/rs6000/darwin-gpsave.S
  18. $(crt_compile) -mmacosx-version-min=10.1 -c $<
  19. darwin-fpsave.o: $(srcdir)/config/rs6000/darwin-fpsave.S
  20. $(crt_compile) -mmacosx-version-min=10.1 -c $<
  21. darwin-vecsave.o: $(srcdir)/config/rs6000/darwin-vecsave.S
  22. $(crt_compile) -mmacosx-version-min=10.1 -c $<
  23. # We build these into a library, so that they are only linked as needed and not
  24. # forced into every object.
  25. libef_ppc.a: $(PPC_ENDFILE_OBJS)
  26. $(AR_CREATE_FOR_TARGET) $@ $(PPC_ENDFILE_OBJS)
  27. $(RANLIB_FOR_TARGET) $@
  28. dw_ppc.o: $(srcdir)/config/rs6000/darwin-world.S
  29. $(crt_compile) -mmacosx-version-min=10.1 -c $<
  30. LIB2ADD = $(srcdir)/config/rs6000/darwin-tramp.S \
  31. $(srcdir)/config/darwin-64.c \
  32. $(srcdir)/config/rs6000/darwin-world.S
  33. # The .S files above are designed to run on all processors, even though
  34. # they use AltiVec instructions.
  35. # -Wa is used because -force_cpusubtype_ALL doesn't work with -dynamiclib.
  36. HOST_LIBGCC2_CFLAGS += -Wa,-force_cpusubtype_ALL
  37. # Although the default for 10.4 is G3, we need the unwinder to be built
  38. # with vector support so that the "save/rest_world" outlined functions are
  39. # correctly invoked.
  40. unwind-dw2_s.o: HOST_LIBGCC2_CFLAGS += -maltivec
  41. unwind-dw2.o: HOST_LIBGCC2_CFLAGS += -maltivec
  42. LIB2ADDEH += $(srcdir)/config/rs6000/darwin-fallback.c
  43. # Build a legacy libgcc_s.1
  44. BUILD_LIBGCCS1 = YES